| (4)Node的类型
| nodeType |
Named Constant |
nodeTypeString |
nodeName |
nodeValue |
| 1 |
ELEMENT_NODE |
element |
tagName |
null |
| 2 |
ATTRIBUTE_NODE |
attribute |
name |
value |
| 3 |
TEXT_NODE |
text |
#text |
content of node |
| 4 |
CDATA_SECTION_NODE |
cdatasection |
#cdata-section |
content of node |
| 5 |
ENTITY_REFERENCE_NODE |
entityreference |
entity reference name |
null |
| 6 |
ENTITY_NODE |
entity |
entity name |
null |
| 7 |
PROCESSING_INSTRUCTION_NODE |
processinginstruction |
target |
content of node |
| 8 |
COMMENT_NODE |
comment |
#comment |
comment text |
| 9 |
DOCUMENT_NODE |
document |
#document |
null |
| 10 |
DOCUMENT_TYPE_NODE |
documenttype |
doctype name |
null |
| 11 |
DOCUMENT_FRAGMENT_NODE |
documentfragment |
#document fragment |
null |
| 12 |
NOTATION_NODE |
notation |
notation name |
null | W3C规定的属性:
| Property |
Description |
| attributes |
Returns a NamedNodeMap containing all attributes for this node |
| childNodes |
Returns a NodeList containing all the child nodes for this node |
| firstChild |
Returns the first child node for this node |
| 共5页: 上一页 [1] 2 [3] [4] [5] 下一页 |
评论加载中…
|