当前位置: 首页 > 网络学院 > XML相关教程 > XML DOM > DOM NodeList

XML DOM
DOM Attribute
DOM Text
DOM CDATA
DOM Comment
DOM HttpRequest
DOM ParseError
DOM 校验器
DOM 介绍
DOM 摘要
DOM 案例
DOM 节点树
DOM 访问节点树
DOM 节点信息
DOM 文档执行
DOM 节点导航

XML DOM 中的 DOM NodeList


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 843 ::
收藏到网摘: n/a

The nodes in the NodeList can be accessed through their index number (starting from 0).
节点列表中的节点可以同过其对应的索引数字进行访问(从0开始计数)。

The NodeList keeps itself up-to-date. If an element is deleted or added, in the node list or the XML document, the list is automatically updated.
节点列表可保持其自身的更新。如果节点列表或XML文档中的某个元素被删除或添加,列表也会被自动更新。

Note: In a node list, the nodes are returned in the order in which they are specified in the XML.
注意:在一个节点列表中,节点被返回的顺序与它们在XML被规定的顺序相同。

IE: Internet Explorer, F: Firefox, O: Opera, W3C: World Wide Web Consortium (Internet Standard)
IE: Internet Explorer, F: Firefox, O: Opera, W3C:万维网联盟 (因特网标准)

NodeList Object Properties
NodeList对象的属性

 

Property
属性
Description
描述
IE F O W3C
length Returns the number of nodes in a node list
返回一个节点列表中的节点数量
5 1 9 Yes

NodeList Object Methods
NodeList对象方法

Method
方法
Description
描述
IE F O W3C
item() Returns the node at the specified index in a node list
返回节点列表中指定索引号的节点
5 1 9 Yes

 

评论 (0) All

登陆 | 还没注册?