uTools-Manuals/docs/java/org/w3c/dom/DOMStringList.html

142 lines
5.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact2, compact3
</div>
<div class="subTitle">
org.w3c.dom
</div>
<h2 class="title" title="Interface DOMStringList">Interface DOMStringList</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre>public interface <span class="typeNameLabel">DOMStringList</span></pre>
<div class="block">
<span><code>DOMStringList</code>接口提供<code>DOMString</code>值的有序集合的<code>DOMString</code> ,而不定义或约束如何实现此集合。</span>
<span><code>DOMStringList</code>中的项目可以通过整数索引访问从0开始。</span>
<p> <span>另见<a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407">Document Object Model (DOM) Level 3 Core Specification</a></span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM 3级
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMStringList.html#contains-java.lang.String-">contains</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> str)</code>
<div class="block">
测试一个字符串是否是这个
<code>DOMStringList</code>一部分。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMStringList.html#getLength--">getLength</a></span>()</code>
<div class="block">
列表中的
<code>DOMString</code>的数量。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMStringList.html#item-int-">item</a></span>(int index)</code>
<div class="block">
返回
<code>index</code>中的index项。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="item-int-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>item</h4> <pre><a href="../../../java/lang/String.html" title="class in java.lang">String</a> item(int index)</pre>
<div class="block">
<span>返回<code>index</code>中的index项。</span>
<span>如果<code>index</code>大于或等于列表中的<code>DOMString</code>的数量,则返回<code>null</code></span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>index</code> - 索引到集合。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<code>DOMString</code>
<code>index</code>位置在
<code>DOMStringList</code> ,或
<code>null</code>如果那不是一个有效的索引。
</dd>
</dl> </li>
</ul> <a name="getLength--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getLength</h4> <pre>int getLength()</pre>
<div class="block">
<span>列表中的<code>DOMString</code>的数量。</span>
<span>有效子节点索引的范围为0到<code>length-1</code>含)。</span>
</div> </li>
</ul> <a name="contains-java.lang.String-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>contains</h4> <pre>boolean contains(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> str)</pre>
<div class="block">
测试一个字符串是否是这个
<code>DOMStringList</code>一部分。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>str</code> - 要查找的字符串。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<code>true</code>如果字符串已经找到,
<code>false</code>否则。
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>