教程·Javascript 中文手册
本章包含了 JavaScript 所有不与任何对象关联的函数。
表 13.1总览了这些函数。
表 13.1 全局函数
| 函数 | 描述 |
|---|---|
| addClient | Appends client information to URLs. |
| addResponseHeader | Adds new information to the response header sent to the client. |
| blob | Assigns BLOb data to a column in a cursor. |
| callC | Calls a native function. |
| debug | Displays values of expressions in the trace window or frame. |
| deleteResponseHeader | Removes information from the header of the response sent to the client. |
| escape | Returns the hexadecimal encoding of an argument in the ISO Latin-1 character set; used to create strings to add to a URL. |
| eval | Evaluates a string of JavaScript code without reference to a particular object. |
| flush | Flushes the output buffer. |
| getOptionValue | Gets values of individual options in an HTML SELECT form element. |
| getOptionValueCount | Gets the number of options in an HTML SELECT form element. |
| isNaN | Evaluates an argument to determine if it is not a number. |
| Number | Converts an object to a number. |
| parseFloat | Parses a string argument and returns a floating-point number. |
| parseInt | Parses a string argument and returns an integer. |
| redirect | Redirects the client to the specified URL. |
| registerCFunction | Registers a native function for use in server-side JavaScript. |
| ssjs_generateClientID | Returns an identifier you can use to uniquely specify the client object. |
| ssjs_getCGIVariable | Returns the value of the specified environment variable set in the server process, including some CGI variables. |
| ssjs_getClientID | Returns the identifier for the client object used by some of JavaScript's client-maintenance techniques. |
| String | Converts an object to a string. |
| taint | Adds tainting to a data element or script. |
| unescape | Returns the ASCII string for the specified value; used in parsing a string 添加了 to a URL. |
| untaint | Removes tainting from a data element or script. |
| write | Adds statements to the client-side HTML page being generated. |