public interface NodeList
NodeList接口提供的节点的有序集合的抽象,没有定义或约束如何集合实现。在DOM对象是生活
NodeList。
在NodeList项目都可以通过积分指数,从0开始。
Node item(int index)
indexth项集合中的。如果
index大于或等于列表中的节点数量,返回
null。
index索引到集合。
NodeList的
indexth位置的节点,或
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.