Node.nodeType枚举值含义
Constant | Value | Description |
---|---|---|
Node.ELEMENT_NODE |
1 |
An Element node such as <p> or <div> . |
Node.TEXT_NODE |
3 |
The actual Text of Element or Attr . |
Node.PROCESSING_INSTRUCTION_NODE |
7 |
A ProcessingInstruction of an XML document such as <?xml-stylesheet ... ?> declaration. |
Node.COMMENT_NODE |
8 |
A Comment node. |
Node.DOCUMENT_NODE |
9 |
A Document node. |
Node.DOCUMENT_TYPE_NODE |
10 |
A DocumentType node e.g. <!DOCTYPE html> for HTML5 documents. |
Node.DOCUMENT_FRAGMENT_NODE |
11 |
A DocumentFragment node. |
标题:Node.nodeType枚举值含义
作者:hugh0524
地址:https://blog.uproject.cn/articles/2017/06/01/1496311109531.html
0 0