JS native objects, built-in objects, and host objects

Source: Internet
Author: User

This post was finally edited by the non-solution, on 2012-9-9 12:13

<ignore_js_op>

This figure comes from the P184 page of the third chapter of the JavaScript Language essence and programming practice. Recently in the second edition, this picture has been re-done, need to be able to see the comparison.

In addition, the concept used in the supplement one:

1. The difference between the built-in (build-in) object and the native (Naitve) object is that the former object is always created at the engine initialization stage and is a subset of the latter, while the latter includes some objects that are created dynamically during the run.

2, the engine extension object is a not too large collection, generally more determined, they also belong to the engine's native object (but not the ECMA specification of the native object).

3. The host object is not the original object of the engine, but is registered by the host framework with some mechanism in the JavaScript engine.

4, some hosts will provide themselves with the object/constructor also known as the "native object", for example, Internet Explorer 7 to the XMLHttpRequest it provides () is known as the original-in contrast to its earlier version of the "new ActiveXObject (' Microsoft.XMLHTTP ') the object created by this method. In this case, the reader should note the difference between the "native object of the host" and the "native object of the engine".

JS native objects, built-in objects, and host objects (GO)

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.