" to call the background, and the syntax is "<%=method %>". Javascript calls a server-side exe or a function in a dll, or even a Linux binary executable file, runs in the server, and returns the result to js after running."/> " to call the background, and the syntax is "<%=method %>". Javascript calls a server-side exe or a function in a dll, or even a Linux binary executable file, runs in the server, and returns the result to js after running.">
Home >Web Front-end >JS Tutorial >JavaScript calls background methods
In javascript, you can use "4eed03230346664e54006e16f8581c1e" to call the background, and the syntax is "6ec5b86f14530fc58340c0473f601180". Javascript calls a server-side exe or a function in a dll, or even a Linux binary executable file, runs it on the server, and returns the result to js after running.
The operating environment of this tutorial: Windows 7 system, JavaScript version 1.8.5, Dell G3 computer.
javascript calls the background method
##Directly use 4eed03230346664e54006e16f8581c1ecall
Front-end JS:<script type="text/javascript"> var methodStr = "<%=BehindMethod() %>"; alert(methodStr); </script>Backend method:
public static string BehindMethod() { return "这是一个后台的方法"; }1)
BehindMethod()public
Access modification before the method Don’t forget the symbol;
ASPX page is loaded or posted back, and the call cannot be controlled manually.
The above is the detailed content of JavaScript calls background methods. For more information, please follow other related articles on the PHP Chinese website!