diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/set/clear/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
