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

What parts does javascript consist of?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "what parts of javascript are composed of". The explanation content in the article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian slowly and deeply to study and learn "what parts of javascript are composed of" together!

JavaScript can be divided into three parts: the core (ECMAScript), the document object model (DOM), and the browser object model (BOM); these three parts describe JavaScript syntax and basic objects, methods and interfaces for processing web content, and methods and interfaces for interacting with browsers.

Operating environment of this tutorial: Windows 10 system, Javascript version 1.8.5, Dell G3 computer.

JavaScript is divided into what?

JavaScript has three parts. They are Core (ECMAScript), Document Object Model (DOM), and Browser Object Model (BOM). These three parts describe the syntax and basic objects of the language, the methods and interfaces for processing web content, and the methods and interfaces for interacting with browsers.

I.ECMAScript(core)

Note:

ECMAScript has no dependency on Web browsers, browsers are just one of the host environments for ECMAScript implementations.

2, the definition is only the language basis, such as some syntax, types, statements, keywords, reserved words, operators, objects...

The host environment provides basic implementations and extensions of the language, such as DOM.

4. Other host environments

Node: server-side JavaScript platform

Adobe Flash

DOM(Document Object Model)

1. Function

(1)Map the entire page into a multi-level node structure

(2)Then, a set of methods for adding, deleting and checking these nodes (contents) is provided

2. DOM level

(1)DOM1

DOM Core How to map XML-based document structure

DOM html adds objects and methods for html

(2)DOM2

Expanded mouse and user interface event, range, traversal and other subdivision modules, added support for CSS through the object interface.

The details are as follows:

DOM View: defines an interface to track different document views

DOM Events: Defines the interface for events and event handling

DOM styles: defines interfaces based on CSS, manipulation element styles

DOM traversal and scope:a. Defined interfaces for traversing and manipulating document trees b. Added methods for validating documents

(3)DOM3

Introduced a way to load and save documents in a uniform manner

3. Attention

Application Programming Interface (API) for XML but extended for HTML, not just for JavaScript, DOM implemented in many other languages.

III.BOM(Browser Object Model)

1. Role

Working with browser windows and frames

JS extensions for browser operations

2. Specific functions

Pop-up function of new browser window

Move, zoom and close browser windows

A navigator object that provides browser details

location object that provides details of pages loaded by the browser

Screen object that provides user display resolution details

Support for cookies

XMLHttpRequest -- ActiveXObject

Thank you for reading, the above is "javascript consists of what parts" of the content, after the study of this article, I believe we have a deeper understanding of what parts of javascript consists of this issue, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

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