JS(Web-API)

JS(Web-API)

The often said JS (JS executed by the browser) consists of two parts: 1. JS basic knowledge (syntax) (ECMA262 standard) 2. JS-Web-API (W3C standard)

The provisions on JS in the W3C standard are: (just define the API and global variables used for JS operation pages in the browser, without any JS syntax)

1.DOM 操作(Document Object Model)

Topic 1. DOM is the basic data structure

Topic 2. What are the common APIs for DOM manipulation

Topic 3. What is the difference between attr and property of a DOM node

Knowledge points:

1. The essence of DOM

xml

html

DOM: It is the interface between website content and JavaScript. JavaScript and the DOM are often considered separate entities since JavaScript became the most commonly used language. DOM interface for accessing, traversing and controlling HTML and XML documents

2. DOM node operation

Three, DOM structure operation

2.BOM operation

3. Event binding

4. Ajax request (including http protocol)

5. Storage

1. The page pop-up box is window.alert(123), the browser needs to do:

1. Define a window global variable, object type

2. Define an alert property whose value is a function

Second, get the element document.getElementById(id), the browser needs

1. Define a document global variable, object type

2. Define a property of getElementById for it, the property value is a function

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325389653&siteId=291194637