A little bit of understanding of JavaScript Summary of the _JAVASCRIPT skills of reading notes in JavaScript advanced programming

Source: Internet
Author: User
L ECMAScript, there is ECMA-262 definition, clear JavaScript this language rules and conventions, like for the beginning of a game specified game rules, specifications, conventions.
L DOM: Methods and interfaces that provide access to and manipulate Web page content
L BOM, provides methods and interfaces for interacting with browsers

ECMA-262 stipulates the following:
L Grammar
L Type
L Key Words
L reserved word
L operator
L Objects
ECMAScript is a description of the programming language of all aspects of the standard, JavaScript implements the ECMAScript and expands the specified content.

The BOM is used to access the browser's capabilities, including the following categories:

L Window objects: (1) window relationship and frame, (2) window position, (3) window size, (4) Navigation and open window, (5) Intermittent call and timed call, (6) System dialog (7) Location object;
L Location Object: Provides information about the documents loaded in the current window of the fish (1) query string parameters, (2) position operation;
L Navigator object: used to detect the browser type of the Display Web page; different browsers have different implementations; main functions are divided into (1) detection plug-ins; (2) Registration process
L Screen object: represents the capabilities of the client, including the height, width, and so on of the display displayed in the browser window.
L History object: Saves the user the history of the Internet, is the Window object's property; So each browser window, every window, every frame has its own history object


DOM: For manipulating page tags, the HTML file is depicted as a structure constructed by a multi-tiered node, including content:
L Document Type:
L Element Type: Provides access to element tag names, child nodes, and attributes
L Text Type: Plain text content, can include escaped HTML characters, but does not include HTML code
L Comment Type: annotations in DOM
L Cdatasection Type: only FOR XML documents
L DocumentType Type
L DocumentFragment Type
L attr Type: Represents the attributes of a node

Events: The way in which JavaScript interacts with HTML, and when a document or browser window takes place some specific interaction is an event. Its implementation uses the Observer pattern, which supports the loose coupling of page behavior and the appearance of the page.
Events are divided into several categories:
L UI Events
L Mouse Events
L Keyboard Events
L HTML Events
L Change Event: triggered when the underlying DOM structure changes.

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.