JavaScript之HTMLCollection接口代码

2019-12-24,,,

复制代码 代码如下:
interface HTMLCollection
{
//包含结点的个数
readonly attribute unsigned long length;
//根据指定的索引index,返回相应的结点
//HTMLCollection中的结点呈树形结构,索引值index是结点深度优先方式排序的序号
Node item (in unsigned long index);
//根据结点的name或者id的属性返回相应的结点
Node namedItem (in DOMString name);
}

您可能感兴趣的文章:

  • javascript常用方法、属性集合及NodeList 和 HTMLCollection 的浏览器差异

《JavaScript之HTMLCollection接口代码.doc》

下载本文的Word格式文档,以方便收藏与打印。