Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

NameList

这篇翻译不完整。请帮忙从英语翻译这篇文章

已废弃 Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Note: 虽然这个API曾经被用在 Gecko, 事实上它也是没有办法被创建的. NameList从 Gecko 10.0开始已经被废弃了。

提供一个有序的键值对集合. 它可以通过下标0访问. 在DOM规范中没有指定这个集合是如何被应用的.

属性

NameList.length只读

方法

NameList.contains()
返回Boolean.
NameList.containsNS()
返回 Boolean
NameList.getName()
返回DOMString
NameList.getNamespaceURI()
返回 DOMString

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Core Specification
NameList
Recommendation Initial definition

文档标签和贡献者

 此页面的贡献者: MeCKodo
 最后编辑者: MeCKodo,