JavaScript common global properties and method record accumulation

Source: Internet
Author: User
Tags numeric

Recently, in the learning Javascript,java as a domain chain contains global, record common global properties and methods, when it is the accumulation of knowledge, not listed all, if you need to see all the relevant JS API documentation.

Common Global Properties:

Global Properties function
Infinity A value that represents positive infinity
NaN Non-numeric values
Undefined Undefined value


Common Global Methods:

  Global method    &NBSP effect                             
encodeuri ()
encodeuricomponent ()
decodeuri () encodeURI () escaped string decoding
decodeuricomponent () encodeURIComponent () escaped string decoding
Replace some characters with escape sequences string encoding
unescape ()
eval ()   Compute the JavaScript code string and return the result /td>
isfinite ()
isnan ()  
parseint () parsing an integer from the string
parsefloat () parsing a decimal from a string
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.