<div class="codetitle"> <span><a style="CURSOR: pointer" data="14280" class="copybut" id="copybut14280" onclick="doCopy('code14280')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code14280"> <br>interface HTMLCollection <br>{ <br>//包含结点的个数 <br>readonly attribute unsigned long length; <br>//根据指定的索引index,返回相应的结点 <br>//HTMLCollection中的结点呈树形结构,索引值index是结点深度优先方式排序的序号 <br>Node item (in unsigned long index); <br>//根据结点的name或者id的属性返回相应的结点 <br>Node namedItem (in DOMString name); <br>} <br> </div>