diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference')
48 files changed, 52 insertions, 52 deletions
diff --git a/files/zh-cn/web/javascript/reference/classes/index.html b/files/zh-cn/web/javascript/reference/classes/index.html index 8b2acf82d2..e54102bcc4 100644 --- a/files/zh-cn/web/javascript/reference/classes/index.html +++ b/files/zh-cn/web/javascript/reference/classes/index.html @@ -12,7 +12,7 @@ tags: - 高阶类 translation_of: Web/JavaScript/Reference/Classes --- -<div></div> + <div>{{JsSidebar("Classes")}}</div> 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> diff --git a/files/zh-cn/web/javascript/reference/operators/addition/index.html b/files/zh-cn/web/javascript/reference/operators/addition/index.html index db323029cc..6dc1696eca 100644 --- a/files/zh-cn/web/javascript/reference/operators/addition/index.html +++ b/files/zh-cn/web/javascript/reference/operators/addition/index.html @@ -10,7 +10,7 @@ original_slug: Web/JavaScript/Reference/Operators/相加 <div>{{EmbedInteractiveExample("pages/js/expressions-addition.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/addition_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/addition_assignment/index.html index 5732d5c473..f7e2c28498 100644 --- a/files/zh-cn/web/javascript/reference/operators/addition_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/addition_assignment/index.html @@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Operators/Addition_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-addition-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/assignment/index.html b/files/zh-cn/web/javascript/reference/operators/assignment/index.html index 9c88caca50..e3872fe493 100644 --- a/files/zh-cn/web/javascript/reference/operators/assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/assignment/index.html @@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Operators/Assignment <div>{{EmbedInteractiveExample("pages/js/expressions-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_and_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_and_assignment/index.html index 05df4461d6..90e4085f43 100644 --- a/files/zh-cn/web/javascript/reference/operators/bitwise_and_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_and_assignment/index.html @@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_AND_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-bitwise-and-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html index 8cd674a8cb..3bdd748cba 100644 --- a/files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html @@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_NOT <div>{{EmbedInteractiveExample("pages/js/expressions-bitwise-not.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_xor_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_xor_assignment/index.html index d8601d9eba..fe1b3a3c0b 100644 --- a/files/zh-cn/web/javascript/reference/operators/bitwise_xor_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_xor_assignment/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_XOR_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-bitwise-xor-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/decrement/index.html b/files/zh-cn/web/javascript/reference/operators/decrement/index.html index 8103a647d1..368184538c 100644 --- a/files/zh-cn/web/javascript/reference/operators/decrement/index.html +++ b/files/zh-cn/web/javascript/reference/operators/decrement/index.html @@ -15,7 +15,7 @@ original_slug: Web/JavaScript/Reference/Operators/自减 <div>{{EmbedInteractiveExample("pages/js/expressions-decrement.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/division/index.html b/files/zh-cn/web/javascript/reference/operators/division/index.html index d1af1e83a0..8f19531c83 100644 --- a/files/zh-cn/web/javascript/reference/operators/division/index.html +++ b/files/zh-cn/web/javascript/reference/operators/division/index.html @@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Operators/Division <div>{{EmbedInteractiveExample("pages/js/expressions-division.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/exponentiation_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/exponentiation_assignment/index.html index 615530a4b4..b01207a853 100644 --- a/files/zh-cn/web/javascript/reference/operators/exponentiation_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/exponentiation_assignment/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Exponentiation_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-exponentiation-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/left_shift_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/left_shift_assignment/index.html index c39333f30b..4499d3473c 100644 --- a/files/zh-cn/web/javascript/reference/operators/left_shift_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/left_shift_assignment/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Left_shift_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-left-shift-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/multiplication/index.html b/files/zh-cn/web/javascript/reference/operators/multiplication/index.html index a37d1e7a54..8cbb0694ca 100644 --- a/files/zh-cn/web/javascript/reference/operators/multiplication/index.html +++ b/files/zh-cn/web/javascript/reference/operators/multiplication/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Multiplication <div>{{EmbedInteractiveExample("pages/js/expressions-multiplication.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/multiplication_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/multiplication_assignment/index.html index 274729034b..be6eee548e 100644 --- a/files/zh-cn/web/javascript/reference/operators/multiplication_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/multiplication_assignment/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Multiplication_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-multiplication-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/remainder/index.html b/files/zh-cn/web/javascript/reference/operators/remainder/index.html index 6a21bea368..4ed2c18eab 100644 --- a/files/zh-cn/web/javascript/reference/operators/remainder/index.html +++ b/files/zh-cn/web/javascript/reference/operators/remainder/index.html @@ -15,7 +15,7 @@ original_slug: Web/JavaScript/Reference/Operators/取余 <div>{{EmbedInteractiveExample("pages/js/expressions-remainder.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/remainder_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/remainder_assignment/index.html index d36fa7cdc3..36b81658d2 100644 --- a/files/zh-cn/web/javascript/reference/operators/remainder_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/remainder_assignment/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Remainder_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-remainder-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/right_shift_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/right_shift_assignment/index.html index 069f47a628..f3698e9737 100644 --- a/files/zh-cn/web/javascript/reference/operators/right_shift_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/right_shift_assignment/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Right_shift_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-right-shift-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/subtraction/index.html b/files/zh-cn/web/javascript/reference/operators/subtraction/index.html index 7eb1f7814a..ceb4bb8441 100644 --- a/files/zh-cn/web/javascript/reference/operators/subtraction/index.html +++ b/files/zh-cn/web/javascript/reference/operators/subtraction/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Subtraction <div>{{EmbedInteractiveExample("pages/js/expressions-subtraction.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/subtraction_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/subtraction_assignment/index.html index 8052f01b9e..0db605f343 100644 --- a/files/zh-cn/web/javascript/reference/operators/subtraction_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/subtraction_assignment/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Subtraction_assignment <div>{{EmbedInteractiveExample("pages/js/expressions-subtraction-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift_assignment/index.html index 0c2e1fb3c5..86e5a2f41a 100644 --- a/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift_assignment/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/Unsigned_right_shift_assignme <div>{{EmbedInteractiveExample("pages/js/expressions-unsigned-right-shift-assignment.html")}}</div> -<div></div> + diff --git a/files/zh-cn/web/javascript/reference/statements/let/index.html b/files/zh-cn/web/javascript/reference/statements/let/index.html index 320e8788a6..8d6334c1c0 100644 --- a/files/zh-cn/web/javascript/reference/statements/let/index.html +++ b/files/zh-cn/web/javascript/reference/statements/let/index.html @@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Statements/let --- <div>{{jsSidebar("Statements")}}</div> -<div></div> + <div><strong>let</strong> 语句声明一个块级作用域的本地变量,并且可选的将其初始化为一个值。</div> diff --git a/files/zh-cn/web/javascript/reference/strict_mode/index.html b/files/zh-cn/web/javascript/reference/strict_mode/index.html index 21b45102ab..a23cbb565f 100644 --- a/files/zh-cn/web/javascript/reference/strict_mode/index.html +++ b/files/zh-cn/web/javascript/reference/strict_mode/index.html @@ -21,11 +21,11 @@ translation_of: Web/JavaScript/Reference/Strict_mode <div>所以在没有对运行环境展开<strong>特性测试</strong>来验证对于严格模式相关方面支持的情况下,就算采用了严格模式也不一定会取得预期效果。严格模式代码和非严格模式代码可以共存,因此项目脚本可以渐进式地采用严格模式。</div> -<div></div> + <div>严格模式对正常的 JavaScript语义做了一些更改。</div> -<div></div> + <ol> <li>严格模式通过<strong>抛出错误</strong>来消除了一些原有<strong>静默错误</strong>。</li> |