aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-04-14 00:11:31 +0000
committerMDN <actions@users.noreply.github.com>2021-04-14 00:11:31 +0000
commitdb26cf86829f9b43d29f18b9bbf197e9e2d55c31 (patch)
tree9e4b1a32107c07b5a6d3d449f9d52f3d645aa87f /files/zh-cn/web
parent2a80998020496995b1eb33e0a2ed024f1708535d (diff)
downloadtranslated-content-db26cf86829f9b43d29f18b9bbf197e9e2d55c31.tar.gz
translated-content-db26cf86829f9b43d29f18b9bbf197e9e2d55c31.tar.bz2
translated-content-db26cf86829f9b43d29f18b9bbf197e9e2d55c31.zip
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web')
-rw-r--r--files/zh-cn/web/api/parentnode/children/index.html117
1 files changed, 0 insertions, 117 deletions
diff --git a/files/zh-cn/web/api/parentnode/children/index.html b/files/zh-cn/web/api/parentnode/children/index.html
deleted file mode 100644
index 35419a52b6..0000000000
--- a/files/zh-cn/web/api/parentnode/children/index.html
+++ /dev/null
@@ -1,117 +0,0 @@
----
-title: ParentNode.children
-slug: Web/API/ParentNode/children
-tags:
- - Property
-translation_of: Web/API/ParentNode/children
----
-<p>{{ APIRef("DOM") }}</p>
-
-<p><code><strong>ParentNode.children </strong></code>是一个只读属性,返回 一个Node的子{{domxref("Element","elements")}} ,是一个动态更新的 {{domxref("HTMLCollection")}}。</p>
-
-<h2 id="Syntax_and_values" name="Syntax_and_values">语法</h2>
-
-<pre>var <em>children</em> = <em>node</em>.children;</pre>
-
-<pre class="eval">var <em>elList</em> = elementNodeReference.children;
-</pre>
-
-<h2 id="Notes" name="Notes">备注</h2>
-
-<p><code>children</code> 属性为只读属性,对象类型为 {{ domxref("HTMLCollection") }},你可以使用 <code>elementNodeReference.children[1].nodeName</code> 来获取某个子元素的标签名称。</p>
-
-<h2 id="Example" name="Example">例子</h2>
-
-<pre class="brush: js">// parg是一个指向&lt;p&gt;元素的对象引用
-if (parg.childElementCount)
-// 检查这个&lt;p&gt;元素是否有子元素
-// 译者注:childElementCount有兼容性问题
- {
- var children = parg.children;
- for (var i = 0; i &lt; children.length; i++)
- {
- // 通过children[i]来获取每个子元素
- // 注意:List是一个live的HTMLCollection对象,在这里添加或删除parg的子元素节点,都会立即改变List的值.
- };
- };
-</pre>
-
-<h2 id="规范" style="margin-bottom: 20px; line-height: 30px;">规范</h2>
-
-<p> </p>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('DOM WHATWG', '#dom-parentnode-children', 'ParentNode.children')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>1</td>
- <td>3.5</td>
- <td>9 (IE6-8 incl commend nodes)</td>
- <td>10</td>
- <td>4</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}<span style="font-size: 14px; line-height: 1.5;">​</span></td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p style="margin-bottom: 20px; line-height: 30px;">[1] Internet Explorer 6 - 8 支持该属性,但是可能会错误地包含注释 {{domxref("Comment")}} 节点。</p>
-
-<h2 id="相关链接" style="margin-bottom: 20px; line-height: 30px;">相关链接</h2>
-
-<ul>
- <li>The {{domxref("ParentNode")}} and {{domxref("ChildNode")}} pure interfaces.</li>
- <li>
- <div class="syntaxbox">Object types implementing this pure interface: {{domxref("Document")}}, {{domxref("Element")}}, and {{domxref("DocumentFragment")}}.</div>
- </li>
-</ul>