Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A complete JavaScript consists of several parts

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "a complete JavaScript consists of several parts". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

A complete JavaScript implementation consists of the following three different parts:

1. The core, the core of the language, describes the grammar and basic objects of the language.

2. Document object model, web document operation standard, and describe the method and interface of dealing with web page content.

3. The browser object model, the operation basis of client and browser window, and describe the method and interface to interact with the browser.

Web browsers are just one of the hosting environments for ECMAScript implementations. The hosting environment provides not only the basic ECMAScript implementation, but also a variety of extended functions.

The document object model is the application programming interface (API) of HTML. DOM maps the entire document to a tree node structure to facilitate quick access and manipulation by JavaScript scripts.

Core (ECMAScript)

ECMAScript, defined by ECMA-262, is an internationally accepted standard scripting language specification that has no dependency on Web browsers. The ECMA-262 standard mainly stipulates that the language consists of the following components:

Grammar

Variables and data types

Keywords and reserved words

Operator

Control statement

Object

ECMAScript version 5.0 was officially released in 2009. For a long time, javaScript was used according to the 5. 0 standard. In 2015, ECMAScript 6 released its official version, officially known as ECMAScript 2015. ECMAScript defines all the properties, methods, and objects of the scripting language. Therefore, when using web client script coding, you must follow the ECMAScript standard.

Document object Model (DOM)

DOM (document object Model) is the application program interface (API) of HTML and XML. DOM will plan the entire page into a document at a node level. Each component of a HTML or XML page is some type of node, which in turn contains a different type of data.

Browser object Model (BOM)

IE 3.0 and Netscape Navigator 3.0 provide a feature, BOM (browser object Model), to access and manipulate browser windows. With BOM, developers can move windows, change the text in the status bar, and perform other actions that are not directly related to the content of the page.

This is the end of the content of "A complete JavaScript consists of several parts". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report