The questions I wondered in the previous article will be solved in this chapter and in the following chapters. From today on, learning DOM programming has gradually become a beginner JavaScript programmer. And then develop toward the js craftsman. The questions I wondered in the previous article will be solved in this chapter and in the following chapters. From today on, learning DOM programming has gradually become a beginner JavaScript programmer. And then develop toward the js craftsman.
Learning English:
Dom: Document Object Model. Document object model
Bom: browser object model.
Note: It can also be called the window object model. (Window object model .)
API: Application Programming Interface.
Note: DOM can be viewed as an API.
Node: Node.
Note: nodes are divided into element nodes, attribute nodes, and text nodes.
Element nodes include attribute nodes and text nodes.
Dom tree:
The following describes how to operate the DOM.
1. Create an element node. CreateElement ():