elementNode.nodeType值对应的类型

节点数                 节点名称

1                     Element | 元素

2                     Attribute | 属性

3                     Text | 文本

4                     CDATA Section | CDATA 断

5                     Entity Reference | 实体参数

6                     Entity | 实

7                     Processing Instrucion | 处理指令

8                     Comment | 注释

9                     Document | 文档

10                   Document Type | 文档类型

11                   Document Fragment | 文档片断

12                   Notation | 符号

你可能感兴趣的:(element)