nodeType是用来获得当前节点对象的类型。nodeType 属性可返回节点的类型。元素element 1 属性attr 2 文本text 3 注释comments 8 文档document 9 比如html: