语法 ssjs_getCGIVariable(varName) 参数
描述 ssjs_getCGIVariable lets you access the environment variables set in the server process, including the CGI variables listed in 表 13.2.
表 13.2 CGI variables accessible through ssjs_getCGIVariable
If you supply an argument that isn't one of the CGI variables listed in n, the runtime engine looks for an environment variable by that name in the server environment. If found, the runtime engine returns the value; otherwise, it returns null. For example, the following code assigns the value of the standard CLASSPATH environment variable to the JavaScript variable classpath:
classpath = ssjs_getCGIVariable("CLASSPATH");
返回页面顶部
Submit feedback about this site to: