Home > Web Front-end > JS Tutorial > body text

What are the global functions in javascript

王林
Release: 2021-11-01 15:58:45
Original
11486 people have browsed it

The global functions in JavaScript are: 1. decodeURI(); 2. decodeURIComponent(); 3. encodeURI(); 4. encodeURIComponent(); 5. escape(); 6. eval().

What are the global functions in javascript

#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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template