aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects
diff options
context:
space:
mode:
authorTanner Dolby <tannercdolby@gmail.com>2022-02-22 01:49:36 -0800
committerGitHub <noreply@github.com>2022-02-22 17:49:36 +0800
commit6e9fe98036090a37cc6247b873845505e5b512fb (patch)
tree5fc00117ddfd9f448eb9e8011b5bd7f6d8000e8d /files/zh-cn/web/javascript/reference/global_objects
parent70c3e11f3335e7701325f125fd712c84d6c1f9bf (diff)
downloadtranslated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.gz
translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.bz2
translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.zip
Removes empty <div> or <p> elements from pages (#3093)
* Removes all empty paragraph elements * Removes all empty div elements * Preserve empty div in code snippet * Preserve empty elements inside code snippets * Remove fr files which were converted into markdown * Web/CSS/transform-function/scaleX()/index.html The file is already renamed to index.md。 * remove not needed file * Resolve remaining conflict Co-authored-by: julieng <julien.gattelier@gmail.com> Co-authored-by: Masahiro FUJIMOTO <mfujimot@gmail.com>
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/atomics/sub/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/atomics/xor/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/dataview/getbigint64/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/function/tosource/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/round/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/regexp/sticky/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/uint32array/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/undefined/index.html4
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakref/deref/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakref/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/weakset/index.html2
27 files changed, 30 insertions, 30 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html
index 2ec4feba05..94cd3c127a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html
@@ -16,9 +16,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/reverse
<div>{{EmbedInteractiveExample("pages/js/array-reverse.html")}}</div>
-<div></div>
-<div></div>
+
+
<h2 id="语法">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/atomics/sub/index.html b/files/zh-cn/web/javascript/reference/global_objects/atomics/sub/index.html
index c5a43d3e35..12e118d712 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/atomics/sub/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/atomics/sub/index.html
@@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Atomics/sub
<div><code><strong>Atomics.sub()</strong></code> 静态方法在数组中的给定位置减去给定值,并返回该位置的旧值。这个原子操作保证在修改后的值被写回之前不会发生其他写操作。</div>
-<div></div>
+
<div>{{EmbedInteractiveExample("pages/js/atomics-sub.html")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/atomics/xor/index.html b/files/zh-cn/web/javascript/reference/global_objects/atomics/xor/index.html
index 83b0bdfb46..5ad7b74d19 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/atomics/xor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/atomics/xor/index.html
@@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Atomics/xor
<div><code><strong>Atomics</strong></code><strong><code>.xor()</code></strong> 静态方法会在数组中给定位置进行一次按位异或操作,并返回该位置的旧值。这个原子操作保证在修改后的值被写回之前不会发生其他写操作。</div>
-<div></div>
+
<div>{{EmbedInteractiveExample("pages/js/atomics-xor.html")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getbigint64/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getbigint64/index.html
index cf90669761..8c68340678 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getbigint64/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getbigint64/index.html
@@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getBigInt64
---
<div>{{JSRef}}</div>
-<div></div>
+
<p><strong><code>getBigInt64()</code></strong> 方法从 {{jsxref("DataView")}}开始获取一个指定偏移量的有符号64位整数 (long long) 。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html b/files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html
index f45613cee2..70f0e06f24 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/decodeuri/index.html
@@ -10,7 +10,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURI
---
<div>{{jsSidebar("Objects")}}</div>
-<div></div>
+
<p><code><strong>decodeURI()</strong></code> 函数能解码由{{jsxref("encodeURI")}} 创建或其它流程得到的统一资源标识符(URI)。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html
index cb2c83b2a7..d9d54aadb5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/function/bind/index.html
@@ -40,7 +40,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/bind
<div><strong>bind()</strong> 函数会创建一个新的<strong>绑定函数</strong>(<strong>bound function</strong>,BF)。绑定函数是一个 exotic function object(怪异函数对象,ECMAScript 2015 中的术语),它包装了原函数对象。调用<strong>绑定函数</strong>通常会导致执行<strong>包装函数</strong>。<br>
<strong>绑定函数</strong>具有以下内部属性:</div>
-<div></div>
+
<div>
<ul>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/tosource/index.html
index 851e354fc7..0a75770d7c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/function/tosource/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/function/tosource/index.html
@@ -25,7 +25,7 @@ Function.toSource();
<p><code>toSource方法返回下面的值</code>:</p>
-<p></p>
+
<ul>
<li>对于内置的<code>Function</code>对象,<code>toSource</code>返回下面的字符串:</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
index e508097567..585ad23186 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
@@ -231,7 +231,7 @@ console.log(new Intl.NumberFormat('en-GB', { notation: "compact" , compactDispla
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<div></div>
+
<div>{{Compat("javascript.builtins.Intl.NumberFormat")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
index 88110bc541..afe4cb79d7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/log/index.html
@@ -82,7 +82,7 @@ Math.log(10); // 2.302585092994046</pre>
<h2 id="See_also">相关链接</h2>
-<p></p>
+
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
index 4320c81ed1..7e4a7fa1ed 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/round/index.html
@@ -158,7 +158,7 @@ round(1.005, 2); //1.01
<h2 id="See_also">相关链接</h2>
-<p></p>
+
<ul>
<li>{{jsxref("Math.abs()")}}</li>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
index 7e9696145d..b35b7995ee 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt1_2/index.html
@@ -20,7 +20,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/SQRT1_2
}
getRoot1_2() // 0.7071067811865476</pre>
-<p></p>
+
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
index 349a7674f8..18b4296189 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/sqrt2/index.html
@@ -50,4 +50,4 @@ getRoot2(); // 1.4142135623730951</pre>
<ul>
<li>The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.</li>
</ul>
-<p></p>
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html
index c9854cdd57..23450e809f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/getownpropertydescriptor/index.html
@@ -135,7 +135,7 @@ Object.getOwnPropertyDescriptor('foo', 0);
<div>{{Compat("javascript.builtins.Object.getOwnPropertyDescriptor")}}</div>
-<div></div>
+
<div></div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html
index 90f9790a0b..5a24536147 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/proto/index.html
@@ -22,7 +22,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/proto
<div>{{jsxref("Object.prototype")}} 的 <code>__proto__</code>  属性是一个访问器属性(一个getter函数和一个setter函数), 暴露了通过它访问的对象的内部<code>[[Prototype]]</code> (一个对象或 {{jsxref("Global_Objects/null", "null")}})。</div>
-<div></div>
+
<p>使用<code>__proto__</code>是有争议的,也不鼓励使用它。因为它从来没有被包括在EcmaScript语言规范中,但是现代浏览器都实现了它。<code>__proto__</code>属性已在ECMAScript 6语言规范中标准化,用于确保Web浏览器的兼容性,因此它未来将被支持。它已被不推荐使用, 现在更推荐使用{{jsxref("Object.getPrototypeOf")}}/{{jsxref("Reflect.getPrototypeOf")}} 和{{jsxref("Object.setPrototypeOf")}}/{{jsxref("Reflect.setPrototypeOf")}}(尽管如此,设置对象的[[Prototype]]是一个缓慢的操作,如果性能是一个问题,应该避免)。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html
index ad57d66c17..76308b311d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html
@@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/seal
<div><code><strong>Object.seal()</strong></code>方法封闭一个对象,阻止添加新属性并将所有现有属性标记为不可配置。当前属性的值只要原来是可写的就可以改变。</div>
-<div></div>
+
<div>{{EmbedInteractiveExample("pages/js/object-seal.html")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html
index a73a8c612c..6bc6b42924 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/setprototypeof/index.html
@@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf
<div><strong>Object.setPrototypeOf() </strong>方法设置一个指定的对象的原型 ( 即, 内部[[Prototype]]属性)到另一个对象或  {{jsxref("null")}}。</div>
-<div></div>
+
<div class="warning">
<p><strong>警告:</strong>由于现代 JavaScript 引擎优化属性访问所带来的特性的关系,更改对象的 <code>[[Prototype]]</code>在<em><strong>各个</strong></em>浏览器和 JavaScript 引擎上都是一个很慢的操作。其在更改继承的性能上的影响是微妙而又广泛的,这不仅仅限于 <code>obj.__proto__ = ...</code> 语句上的时间花费,而且可能会延伸到<em><strong>任何</strong></em>代码,那些可以访问<em><strong>任何</strong></em><code>[[Prototype]]</code>已被更改的对象的代码。如果你关心性能,你应该避免设置一个对象的 <code>[[Prototype]]</code>。相反,你应该使用 {{jsxref("Object.create()")}}来创建带有你想要的<code>[[Prototype]]</code>的新对象。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html
index 5713289596..88affb3521 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html
@@ -123,4 +123,4 @@ theDog = new Dog("Gabby", "Lab", "chocolate", "girl");</pre>
<li>{{jsxref("Object.prototype.toString()")}}</li>
</ul>
-<p></p>
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
index 83fd96107e..bf7a3d736a 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/finally/index.html
@@ -10,7 +10,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/finally
---
<div>{{JSRef}}</div>
-<div></div>
+
<div><code><strong>finally()</strong></code> 方法返回一个{{jsxref("Promise")}}。在promise结束时,无论结果是fulfilled或者是rejected,都会执行指定的回调函数。这为在<code>Promise</code>是否成功完成后都需要执行的代码提供了一种方式。</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html
index 4e50535f20..665c71f1f1 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/promise/resolve/index.html
@@ -11,9 +11,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/resolve
<div><code><strong>Promise.resolve(value)</strong></code>方法返回一个以给定值解析后的{{jsxref("Promise")}} 对象。如果这个值是一个 promise ,那么将返回这个 promise ;如果这个值是thenable(即带有{{jsxref("Promise.then", "\"then\" ")}}方法),返回的promise会“跟随”这个thenable的对象,采用它的最终状态;否则返回的promise将以此值完成。此函数将类promise对象的多层嵌套展平。</div>
-<div></div>
-<div></div>
+
+
<div class="warning">
<p><strong>警告:</strong>不要在解析为自身的thenable 上调用<code>Promise.resolve</code>。这将导致无限递归,因为它试图展平无限嵌套的promise。一个例子是将它与Angular中的异步管道一起使用。在<a href="https://angular.io/guide/template-syntax#avoid-side-effects">此处</a>了解更多信息。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/sticky/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/sticky/index.html
index 6060a9edc0..375952ba9e 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/regexp/sticky/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/sticky/index.html
@@ -73,7 +73,7 @@ regex2.test(".\nfoo"); // true - 索引2是行的开始
<p>{{Compat("javascript.builtins.RegExp.sticky")}}</p>
-<div></div>
+
<h2 id="相关链接">相关链接</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html
index f37ad018db..ee5396779f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/search
---
<div>{{JSRef}}</div>
-<div></div>
+
<p><code>Symbol.search 指定了一个搜索方法,这个方法接受用户输入的正则表达式,返回该正则表达式在字符串中匹配到的下标,这个方法由以下的方法来调用 </code>{{jsxref("String.prototype.search()")}}。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html
index 18c1c5a6e9..c93b5a1e47 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive
---
<div>{{JSRef}}</div>
-<div></div>
+
<p><code><strong>Symbol.toPrimitive</strong></code> 是一个内置的 Symbol 值,它是作为对象的函数值属性存在的,当一个对象转换为对应的原始值时,会调用此函数。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/uint32array/index.html b/files/zh-cn/web/javascript/reference/global_objects/uint32array/index.html
index bc39c4a39c..e9ca3e5652 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/uint32array/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/uint32array/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Uint32Array
---
<div>{{JSRef("Global_Objects", "TypedArray", "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array")}}</div>
-<div></div>
+
<p><strong><code>Uint32Array</code> </strong>表示一个由基于平台字节序的32位无符号字节组成的数组。如果需要对字节顺序进行控制(译者注:即 littleEndian 或 bigEndian),请使用 {{jsxref("DataView")}} 代替。数组中每个元素的初始值都是<code>0</code>。一旦创建,你可以用对象的方法引用数组里的元素,或者使用标准的数组索引语法(即,使用中括号)。</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/undefined/index.html b/files/zh-cn/web/javascript/reference/global_objects/undefined/index.html
index 9e2241c565..c570b59ce9 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/undefined/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/undefined/index.html
@@ -9,11 +9,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/undefined
<div>全局属性<code><strong>undefined</strong></code>表示原始值<code>{{Glossary("Undefined", "undefined")}}。</code>它是一个JavaScript的 {{Glossary("Primitive", "原始数据类型")}} 。</div>
-<div></div>
+
<div>{{js_property_attributes(0,0,0)}}</div>
-<div></div>
+
<div>
<div>{{EmbedInteractiveExample("pages/js/globalprops-undefined.html")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakref/deref/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakref/deref/index.html
index 2d4cf7f3b6..6bdafc93c7 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/weakref/deref/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/weakref/deref/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakRef/deref
---
<div>{{JSRef}}</div>
-<div></div>
+
<div><code>deref</code>方法返回{{jsxref("WeakRef")}} 实例的目标对象,如果目标对象已被垃圾收集,则返回<code>undefined</code> 。</div>
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 ec593be548..b4a05b7d75 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
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakRef
---
<div>{{JSRef}}</div>
-<div></div>
+
<p>WeakRef对象允许您保留对另一个对象的弱引用,而不会阻止被弱引用对象被GC回收</p>
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 acfc0a3edf..98c743470a 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
@@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakSet
---
<div>{{JSRef}}</div>
-<div></div>
+
<p><strong><code>WeakSet</code></strong> 对象允许你将<em>弱保持对象</em>存储在一个集合中。</p>