1. A document is a tree of nodes
2. Nodes are divided into different types: element nodes, text nodes, attribute nodes, etc.
3. Each node is an object, and the atom of the DOM is an element node
4.getElementById returns an object that corresponds to a specific element node in the document
5.getELementsByTagName and Getelementsbyclassname return an array of objects that correspond to a specific set of ELEMENT nodes in the document, respectively.
The 6.typeof operator can tell us whether its operand is a string, a numeric value, a function, a Boolean, or an object
7. The wildcard ("*") asterisk character must be enclosed in quotation marks, in order to make the wildcard character different from the multiplication operator, if you want to know how many element nodes are in a document: Alert (document.getElementsByTagName ("*"). Length)
8.getElementsByClassName reference this article
9.null and ' difference reference this article
10.setAttribute changes are not reflected in the source code of the document itself, this "duplicity" phenomenon stems from the DOM working mode: Loading the static content of the document, and then dynamic refresh, dynamic refresh does not affect the static content of the document. This is the true power of the DOM: refreshing the content of the page without having to refresh the page in the browser.
Read "JavaScript DOM Programming Art (2nd edition)" NOTE 3