w3pop.com :: 网络学院 :: XML DOM :: DOM 节点信息
The nodeName property contains the name of a node:
nodeName[节点名称] 属性包含的名称如下:
Note: nodeName always contains the uppercase tag name of an XML element.
注意: nodeName[节点名称]通常包含XML元素的标签名称的大写字母形式。
On text nodes, the nodeValue property contains the text.
在文本节点中,nodeValue[节点值] 属性包含了文本。
On attribute nodes, the nodeValue property contains the attribute value.
在属性节点中,nodeValue[节点值] 属性包含了属性值。
The nodeValue property is not available on document and element nodes.
nodeValue[节点值] 属性不能用于文档和元素节点。
The nodeType property returns the type of node.
nodeType[节点类型]属性返回了节点的类型。
The most important node types are:
最重要的nodeType[节点类型]如下:
| Element type 元素类型 |
NodeType 节点类型 |
|---|---|
| Element 元素 | 1 |
| Attribute 属性 | 2 |
| Text 文本 | 3 |
| Comment 注释 | 8 |
| Document 文档 | 9 |
评论 (0)
All