当前位置:Gxlcms > JavaScript > JavaScript之HTMLCollection接口代码

JavaScript之HTMLCollection接口代码

时间:2021-07-01 10:21:17 帮助过:2人阅读

代码如下:

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

人气教程排行