Parent-node Pips-Sibling-node operation:
1:childnoeds; Parent node. childNodes; Gets the child element through the parent element (element node, text node, attribute node) and can be modified by the obtained content;
2:children; Parent node. Children; Gets the element node (label node) of the child element through the parent node;
3:firsechild; Parent node. firsechild= Children[0] gets to the first child node through the parent node;
4:lastchild; The parent node. LastChild gets to the last child node through the parent element;
5:parentnode child nodes. ParentNode Gets the parent node through the child node;
6:previoussibling the current node. PreviousSibling find the sibling tag above through the current tab;
7:nextsibling the current node. nextSibling find the sibling tag below through the current node;
BOM (i);
8:a.appendchild (b)//put B at the end of the A-label;
9:createelement ()//Create a new node; var newq = document.createelement ("Li");
Focus:
1. Parent node. insertbefore (new node, inserted position)
JavaScript BOM (both);