JavaScript built-in top-level functions

Source: Internet
Author: User

Noun explanation :

1. built-in : ECMAscript

Built-in functions : ECMAscript 's own function number ()

Host function : BOM DOM alert () Prompt () confirm ();

Confirm () pops up a dialog box with a OK and cancel button to confirm that the return is true and that the return false is canceled.

2. Top Floor

String function: String . function ()

Array functions

A function of the top-level object that can act on any object.

Built-in top-level functions

1.escape () encodes a string

2.unescape () decodes the encoded string

3.Number () converted to numeric type

4.String () Convert to String type

5.Boolean () Convert to Boolean type

6.parseInt () converts a string to an integer type

7.parseFloat () converted to decimal

8.IsNaN() determines whether a number can be converted to a numeric type.

9.isFinite () determines whether a number is a poor number. Returns False if there are no poor numbers or numbers that cannot be converted to numeric types

10.eval () converts a string into a javascript command execution ( must conform to the JavaScript syntax specification, Otherwise, an error occurs ).

Ie:

Eval () takes effect in the current scope

Window.eval () takes effect in the current scope

ExecScript ()

Ff:

Eval () takes effect in the current scope

Window.eval () takes effect in the global


This article is from the "Mr.zhu-Technology Exchange" blog, please be sure to keep this source http://bjishu.blog.51cto.com/7481301/1671813

JavaScript built-in top-level functions

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.