aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/domstringlist/index.html
blob: ab76994a782eea12782c9c2dda385745e32abc4c (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
---
title: DOMStringList
slug: Web/API/DOMStringList
translation_of: Web/API/DOMStringList
---
<p>{{APIRef("DOM")}}{{Obsolete_header}}</p>

<p>某些API会返回的包含一列<a class="internal" href="/En/DOM/DOMString" title="En/DOM/DOMString">DOMString</a>的一种类型</p>

<h2 id="Properties">Properties</h2>

<dl>
 <dt>{{domxref("DOMStringList.length")}} {{ReadOnlyInline}}</dt>
 <dd>返回列表的长度,</dd>
</dl>

<h2 id="Methods">Methods</h2>

<dl>
 <dt>{{domxref("DOMStringList.item()")}}</dt>
 <dd>返回一个 {{domxref("DOMString")}}.</dd>
 <dt>{{domxref("DOMStringList.contains()")}}</dt>
 <dd>返回{{jsxref("Boolean")}} 类型的标示来表明此类型是否包含某字符串。</dd>
</dl>

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

<ul>
 <li><a class="external" href="http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList" rel="freelink">http://www.w3.org/TR/DOM-Level-3-Cor...#DOMStringList</a></li>
</ul>