aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/set
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/set')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/add/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html6
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/has/index.html8
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/set/index.html2
5 files changed, 12 insertions, 12 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/add/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/add/index.html
index dac50ccb29..f52634dde9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/add/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/add/index.html
@@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/add
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>mySet</em>.add(value);</code></pre>
@@ -35,7 +35,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/add
<p>注意:不能添加重复的值</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush: js">var mySet = new Set();
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html
index de14cee47c..b8df81ca52 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html
@@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/clear
<p><code><strong>clear()</strong></code> 方法用来清空一个 <code>Set</code> 对象中的所有元素。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>mySet</em>.clear();</code>
</pre>
@@ -23,7 +23,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/clear
<p>{{jsxref("undefined")}}.</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush: js">var mySet = new Set();
mySet.add(1);
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html
index 3d11a91183..92eef27f5f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/delete/index.html
@@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/delete
<p><code><strong>delete()</strong></code> 方法可以从一个 <code>Set</code> 对象中删除指定的元素。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>mySet</em>.delete(value);</code></pre>
@@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/delete
<p>成功删除返回 <code>true</code>,否则返回 <code>false。</code></p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush: js">var mySet = new Set();
mySet.add("foo");
@@ -112,7 +112,7 @@ mySet.has("foo"); // 返回 false,"foo" 已经成功删除
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Set")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
index 47369b1f27..0174ccd5bc 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/has/index.html
@@ -9,11 +9,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/has
---
<div>{{JSRef("Global_Objects", "Set")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><strong>has() </strong>方法返回一个布尔值来指示对应的值value是否存在Set对象中。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>mySet</em>.has(value);</code></pre>
@@ -31,9 +31,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/has
<dd>如果指定的值(value)存在于Set对象当中,返回<code>true</code>;否则返回 <code>false</code>。</dd>
</dl>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
-<h3 id="Example:_Testing_size_of_all_array_elements" name="Example:_Testing_size_of_all_array_elements">使用 <code>has</code> 方法</h3>
+<h3 id="Example:_Testing_size_of_all_array_elements">使用 <code>has</code> 方法</h3>
<pre class="brush: js line-numbers language-js">var mySet = new Set();
mySet.add('foo');
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/index.html
index df4e5fbf4c..23e07ae834 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/set/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/set/index.html
@@ -37,7 +37,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set
<dd>构造函数用来创建派生对象.</dd>
</dl>
-<h2 id="Properties" name="Properties">实例属性</h2>
+<h2 id="Properties">实例属性</h2>
<dl>
<dt>{{jsxref("Set.prototype.size")}}</dt>