aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/orphaned/web/api/namelist/index.html
blob: 9e2ad5d9f4be246aa3e59d5a0ae46f38cd90a6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
title: NameList
slug: orphaned/Web/API/NameList
translation_of: Web/API/NameList
original_slug: Web/API/NameList
---
<p>{{APIRef("DOM")}}{{ obsolete_header("10.0") }}</p>

<div class="note">
<p><strong>Note:</strong> 虽然这个API曾经被用在 Gecko, 事实上它也是没有办法被创建的. NameList从 {{ Gecko("10.0") }}开始已经被废弃了。</p>
</div>

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

<h2 id="属性">属性</h2>

<dl>
 <dt>{{domxref("NameList.length")}}{{readonlyInline}}</dt>
</dl>

<h2 id="方法">方法</h2>

<dl>
 <dt>{{domxref("NameList.contains()")}}</dt>
 <dd>返回{{jsxref("Boolean")}}.</dd>
 <dt>{{domxref("NameList.containsNS()")}}</dt>
 <dd>返回 {{jsxref("Boolean")}}</dd>
 <dt>{{domxref("NameList.getName()")}}</dt>
 <dd>返回{{domxref("DOMString")}}</dd>
 <dt>{{domxref("NameList.getNamespaceURI()")}}</dt>
 <dd>返回 {{domxref("DOMString")}}</dd>
</dl>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th>Specification</th>
   <th>Status</th>
   <th>Comment</th>
  </tr>
  <tr>
   <td>{{SpecName("DOM3 Core", "core.html#NameList", "NameList")}}</td>
   <td>{{Spec2("DOM3 Core")}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>