public interface NodeList
NodeList接口提供了节点的有序集合的抽象,而不定义或约束如何实现该集合。
NodeList DOM中的对象是活的。
NodeList中的项目可以通过整数索引访问,从0开始。
Node item(int index)
index中的index项目。
如果index大于或等于列表中的节点数,则返回null 。
index - 索引到集合。
index位置在
NodeList ,或
null如果那不是一个有效的索引。
int getLength()
length-1含)。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.