Recently, I am learning JavaScript. The Java scope chain includes the global world. Recording the commonly used global attributes and methods is regarded as the accumulation of knowledge. Not all are listed. If you want to view them all, you can refer to the JS-related API documentation.性 Commonly used global attributes:
global attributesINFINITY indicates that the numeric value of the positive infinite
Non -Digital value
Undefined Unexpicious Value
Commonly used global methods:
encodeURIComponent() to return a copy of the parameters, some characters are replaced by hexadecimal escape sequences
decodeURI() for encodeURI () Escaped string decoding
decodeURIComponent() Decoding encodeURIComponent() escaped string
escape() String encoding by replacing certain characters with escape sequences
unescape() For characters encoded with escape() String decoding
eval() Calculate the Javascript code string and return the result
isFinite() Check whether a value is an infinite number
isNaN() Check whether a value is a non-numeric value
parseInt() Parse an integer from a string
parseFloat( ) Parse a decimal from a string