定义和用法
nodeType 属性返回被选节点的节点类型。
语法:
elementNode.nodeType
| 节点编号: | 节点名称: |
|---|---|
| 1 | Element |
| 2 | Attribute |
| 3 | Text |
| 4 | CDATA Section |
| 5 | Entity Reference |
| 6 | Entity |
| 7 | Processing Instrucion |
| 8 | Comment |
| 9 | document |
| 10 | document Type |
| 11 | document Fragment |
| 12 | Notation |

定义和用法
nodeType 属性返回被选节点的节点类型。
语法:
elementNode.nodeType
| 节点编号: | 节点名称: |
|---|---|
| 1 | Element |
| 2 | Attribute |
| 3 | Text |
| 4 | CDATA Section |
| 5 | Entity Reference |
| 6 | Entity |
| 7 | Processing Instrucion |
| 8 | Comment |
| 9 | document |
| 10 | document Type |
| 11 | document Fragment |
| 12 | Notation |