JavaScript Global Reference
The JavaScript global properties and methods can be used with all JavaScript objects.
JavaScript Global Methods and Properties
姓名 | 描述 |
---|---|
解码URI() | Decodes a URI |
decodeURI Component() |
Decodes a URI component |
编码URI() | Encodes a URI |
encodeURI Component() |
Encodes a URI component |
逃脱() | Deprecated. Use instead: 编码URI() 编码URI组件() |
评估() | Evaluates a string and executes it as if it was script code |
无穷 | A numeric value that represents positive/negative infinity |
有限() | Determines whether a value is a finite, legal number |
是NaN() | Determines whether a value is an illegal number |
钠 | "Not-a-Number" value |
数字() | Converts an object's value to a number |
解析浮点数() | Parses a string and returns a floating point number |
解析Int() | Parses a string and returns an integer |
细绳() | Converts an object's value to a string |
不明确的 | It Indicates that a variable has not been assigned a value |
unescape() | Deprecated. Use instead: 解码URI() 解码URI组件() |
Note
Since these methods are global, and global the object is the browser window, these methods are actually window methods:
isNaN() is the same as window.isNaN().