aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/weakmap
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/weakmap')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html
index b172fc0698..212911cf30 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html
@@ -5,11 +5,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/delete
---
<div>{{JSRef("Global_Objects", "WeakMap")}}</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>delete()</strong></code> 方法可以从一个 <code>WeakMap</code> 对象中删除指定的元素。</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>wm</em>.delete(key);</code></pre>
@@ -24,7 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/delete
<p>如果成功删除,返回 <code>true</code>,否则返回 <code>false</code>。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush: js;">var wm = new WeakMap();
wm.set(window, "foo");