diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/weakref/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/weakref/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakref/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakref/index.html index 91452cd75f..9f9f275816 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakref/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakref/index.html @@ -68,7 +68,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakRef <p>这个例子演示了在一个DOM元素中启动一个计数器,当这个元素不存在时停止:</p> -<pre class="brush: js notranslate">class Counter { +<pre class="brush: js">class Counter { constructor(element) { // Remember a weak reference to the DOM element this.ref = new WeakRef(element); |