JavaScript common global properties and methods record accumulation _ basics

Source: Internet
Author: User
Tags numeric value
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:
/tr>
  Global methods    &NBSP effect               &NBSP ;             
encodeuri () Returns a copy of the parameter, some of which are in a hexadecimal escape sequence Replace, it is recommended that you use encodeURIComponent ()
encodeuricomponent () to return a copy of the parameter, some of which are replaced by a hexadecimal escape sequence
decodeURI () decodes the string of encodeURI ()
decodeuricomponent () string decoding of encodeURIComponent ()
Escape () replace some character string encoding with escape sequence
Unescape () to decode a string that is encoded with escape ()
eval ()   compute a JavaScript code string, returning the result
isfinite () verifies that a value is an infinity number
isNaN ()   Verify that a value is a non-numeric value /td>
parseint () parse an integer from string
parsefloat () parse a decimal from string /td>
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.