aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/weakset
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/weakset')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakset/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakset/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakset/index.html
index 1e82a11d54..acfc0a3edf 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakset/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakset/index.html
@@ -88,7 +88,7 @@ execRecursively(obj =&gt; console.log(obj), foo);</pre>
<p>在此,在第一次运行时创建<code>WeakSet</code>,并将其与每个后续函数调用一起传递(使用内部参数_refs)。 对象的数量或它们的遍历顺序无关紧要,因此,WeakSet比{{jsxref("Set")}}更适合(和执行)跟踪对象引用,尤其是在涉及大量对象时。</p>
-<h2 id="Properties" name="Properties">属性</h2>
+<h2 id="Properties">属性</h2>
<dl>
<dt><code>WeakSet.length</code></dt>
@@ -97,7 +97,7 @@ execRecursively(obj =&gt; console.log(obj), foo);</pre>
<dd>表示<code>WeakSet</code>构造函数的原型。 允许向所有<code>WeakSet</code>对象添加属性。</dd>
</dl>
-<h2 id="Boolean_instances" name="Boolean_instances"><code>WeakSet</code> 实例</h2>
+<h2 id="Boolean_instances"><code>WeakSet</code> 实例</h2>
<p>所有 <code>WeakSet</code> 实例都继承自 {{jsxref("WeakSet.prototype")}}.</p>