The global functions in JavaScript are: 1. decodeURI(); 2. decodeURIComponent(); 3. encodeURI(); 4. encodeURIComponent(); 5. escape(); 6. eval().
#The operating environment of this article: windows10 system, javascript 1.8.5, thinkpad t480 computer.
Global methods in JavaScript can be used to create Javascript objects. So what are the global methods in JavaScript?
The global methods in javascript are:
1. decodeURI(): decode an encoded URI
2. decodeURIComponent(): decode an encoded URI component
3. encodeURI(): Encode the string into a URI
4. encodeURIComponent(): Encode the string into a URI component
5. escape(): Encode the character Encode the string
6. eval(): Calculate the JavaScript string and execute it as script code
7. isFinite(): Check whether a value is infinite Number
8, isNaN(): Check whether a value is a number
9, Number(): Convert the value of the object into a number
10, parseFloat() : Parse a string and return a floating point number
11. parseInt(): Parse a string and return an integer
12. String(): Convert the value of the object to a string
13. unescape(): Decode the string encoded by escape()
Recommended learning: javascript video tutorial
The above is the detailed content of What are the global functions in javascript. For more information, please follow other related articles on the PHP Chinese website!