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 9f9f275816..ec593be548 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 @@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakRef <p>WeakRef对象包含对对象的弱引用,这个弱引用被称为该WeakRef对象的target或者是referent。对对象的弱引用是指当该对象应该被GC回收时不会阻止GC的回收行为。而与此相反的,一个普通的引用(默认是强引用)会将与之对应的对象保存在内存中。只有当该对象没有任何的强引用时,JavaScript引擎GC才会销毁该对象并且回收该对象所占的内存空间。如果上述情况发生了,那么你就无法通过任何的弱引用来获取该对象。</p> <div class="note"> -<p><strong>Note:</strong> 在使用前请阅读<a href="#Avoid_where_possible">Avoid where possible</a>,对于WeakRef对象的使用要慎重考虑,<strong>能不使用就尽量不要使用</strong></p> +<p><strong>备注:</strong> 在使用前请阅读<a href="#Avoid_where_possible">Avoid where possible</a>,对于WeakRef对象的使用要慎重考虑,<strong>能不使用就尽量不要使用</strong></p> </div> <h2 id="构造函数">构造函数</h2> |
