자바스크립트 전역 참조
JavaScript 전역 속성 및 메서드는 모든 JavaScript 개체와 함께 사용할 수 있습니다.
JavaScript 전역 메서드
Function | Description |
---|---|
decodeURI() | Decodes a URI |
decodeURI Component() |
Decodes a URI component |
encodeURI() | Encodes a URI |
encodeURI Component() |
Encodes a URI component |
escape() | Deprecated. Use instead: encodeURI() encodeURIComponent() |
eval() | Evaluates a string and executes it as if it was script code |
isFinite() | Determines whether a value is a finite, legal number |
isNaN() | Determines whether a value is an illegal number |
Number() | Converts an object's value to a number |
parseFloat() | Parses a string and returns a floating point number |
parseInt() | Parses a string and returns an integer |
String() | Converts an object's value to a string |
unescape() | Deprecated. Use instead: decodeURI() decodeURIComponent() |
JavaScript 전역 속성
Property | Description |
---|---|
Infinity | A numeric value that represents positive/negative infinity |
NaN | "Not-a-Number" value |
undefined | Indicates that a variable has not been assigned a value |
메모
이러한 메서드는 전역이고 전역 개체는 브라우저 창이므로 이러한 메서드는 실제로 창 메서드입니다.
isNaN()은 window.isNaN()과 동일합니다.