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