public interface DOMStringList
DOMStringList接口提供DOMString值的有序集合的DOMString ,而不定义或约束如何实现此集合。
DOMStringList中的项目可以通过整数索引访问,从0开始。
String item(int index)
index中的index项。
如果index大于或等于列表中的DOMString的数量,则返回null 。
index - 索引到集合。
DOMString在
index位置在
DOMStringList ,或
null如果那不是一个有效的索引。
int getLength()
DOMString的数量。
有效子节点索引的范围为0到length-1含)。
boolean contains(String str)
DOMStringList一部分。
str - 要查找的字符串。
true如果字符串已经找到,
false否则。
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.