Core DOM:
对象:Document,Node, ElementNode,TextNode,AttributeNode,CommentNode,NodeList
Core DOM provides a unified user interface:
createElement
appendChild
setAttribute
removeAttribute
nodeName
Core DOM to create new elements:
var newNode=document.createElement("img")
Add attributes to elements:
e.setAttribure(‘’,‘’)
e.setAttribureNode(attr)
Applications:
Core DOM node for operations, such as create, delete, search, etc.
HTML DOM:
Object: Image, the Table, Form, the Input, the Select HTML tags objectified ...
HTML DOM provides a packaged various objects:
Image
Select
Option
HTML DOM to create new elements:
var newNode=new Image();
Add attributes to elements:
img.src='';
img.id='';
imd.title='';
img.className=''
img.style.display='';
Applications:
HTML DOM values for operational attributes, such as read or modify the properties of