Movatterモバイル変換


[0]ホーム

URL:


         


Interface NodeList


public interfaceNodeList

TheNodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.NodeList objects in the DOM are live.

The items in theNodeList are accessible via an integral index, starting from 0.

See also theDocument Object Model (DOM) Level 2 Core Specification.


getLength()
          The number of nodes in the list.
item(int index)
          Returns theindexth item in the collection.
 

item

publicNodeitem(int index)
Returns theindexth item in the collection. Ifindex is greater than or equal to the number of nodes in the list, this returnsnull.
Parameters:
index - Index into the collection.
Returns:
The node at theindexth position in theNodeList, ornull if that is not a valid index.

getLength

public intgetLength()
The number of nodes in the list. The range of valid child node indices is 0 tolength-1 inclusive.

         


[8]ページ先頭

©2009-2025 Movatter.jp