一、DOM基本操作
- getElementById方法定义在Document.prototype上,即Element节点上不能使用。 
- getElementsByName方法定义在HTMLDocument.prototype上,即非html中的document 
 不能使用(xml document,Element)
- getElementsByTagName方法定义在Document.prototype和Element.prototype上 
- HTMLDocument.prototype定义了一些常用属性,body,head分别指代HTML文档中的 和标签
- Document.prototype上定义了documentElement属性,指代文档的根元素,在HTML文档中, 
 他总是指代- <html>元素
- getElementsByClassName,querySelectorAll,querySelector在Document.prototype, 
 Element.prototype类中均有定义
二、DOM结构树
            1.Document        HTMLDocument
                              1)Text
            2.CharacterData
                              2)Comment
Node
            3.Element         HTMLElement
            4.Attr