From 6e9fe98036090a37cc6247b873845505e5b512fb Mon Sep 17 00:00:00 2001 From: Tanner Dolby Date: Tue, 22 Feb 2022 01:49:36 -0800 Subject: Removes empty
or

elements from pages (#3093) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Co-authored-by: Masahiro FUJIMOTO --- files/zh-cn/web/javascript/reference/classes/index.html | 2 +- .../web/javascript/reference/global_objects/array/reverse/index.html | 4 ++-- .../web/javascript/reference/global_objects/atomics/sub/index.html | 2 +- .../web/javascript/reference/global_objects/atomics/xor/index.html | 2 +- .../reference/global_objects/dataview/getbigint64/index.html | 2 +- .../web/javascript/reference/global_objects/decodeuri/index.html | 2 +- .../web/javascript/reference/global_objects/function/bind/index.html | 2 +- .../javascript/reference/global_objects/function/tosource/index.html | 2 +- .../javascript/reference/global_objects/intl/numberformat/index.html | 2 +- .../zh-cn/web/javascript/reference/global_objects/math/log/index.html | 2 +- .../web/javascript/reference/global_objects/math/round/index.html | 2 +- .../web/javascript/reference/global_objects/math/sqrt1_2/index.html | 2 +- .../web/javascript/reference/global_objects/math/sqrt2/index.html | 2 +- .../global_objects/object/getownpropertydescriptor/index.html | 2 +- .../web/javascript/reference/global_objects/object/proto/index.html | 2 +- .../web/javascript/reference/global_objects/object/seal/index.html | 2 +- .../reference/global_objects/object/setprototypeof/index.html | 2 +- .../javascript/reference/global_objects/object/tosource/index.html | 2 +- .../javascript/reference/global_objects/promise/finally/index.html | 2 +- .../javascript/reference/global_objects/promise/resolve/index.html | 4 ++-- .../web/javascript/reference/global_objects/regexp/sticky/index.html | 2 +- .../web/javascript/reference/global_objects/symbol/search/index.html | 2 +- .../javascript/reference/global_objects/symbol/toprimitive/index.html | 2 +- .../web/javascript/reference/global_objects/uint32array/index.html | 2 +- .../web/javascript/reference/global_objects/undefined/index.html | 4 ++-- .../web/javascript/reference/global_objects/weakref/deref/index.html | 2 +- .../zh-cn/web/javascript/reference/global_objects/weakref/index.html | 2 +- .../zh-cn/web/javascript/reference/global_objects/weakset/index.html | 2 +- files/zh-cn/web/javascript/reference/operators/addition/index.html | 2 +- .../web/javascript/reference/operators/addition_assignment/index.html | 2 +- files/zh-cn/web/javascript/reference/operators/assignment/index.html | 2 +- .../javascript/reference/operators/bitwise_and_assignment/index.html | 2 +- files/zh-cn/web/javascript/reference/operators/bitwise_not/index.html | 2 +- .../javascript/reference/operators/bitwise_xor_assignment/index.html | 2 +- files/zh-cn/web/javascript/reference/operators/decrement/index.html | 2 +- files/zh-cn/web/javascript/reference/operators/division/index.html | 2 +- .../reference/operators/exponentiation_assignment/index.html | 2 +- .../javascript/reference/operators/left_shift_assignment/index.html | 2 +- .../web/javascript/reference/operators/multiplication/index.html | 2 +- .../reference/operators/multiplication_assignment/index.html | 2 +- files/zh-cn/web/javascript/reference/operators/remainder/index.html | 2 +- .../javascript/reference/operators/remainder_assignment/index.html | 2 +- .../javascript/reference/operators/right_shift_assignment/index.html | 2 +- files/zh-cn/web/javascript/reference/operators/subtraction/index.html | 2 +- .../javascript/reference/operators/subtraction_assignment/index.html | 2 +- .../reference/operators/unsigned_right_shift_assignment/index.html | 2 +- files/zh-cn/web/javascript/reference/statements/let/index.html | 2 +- files/zh-cn/web/javascript/reference/strict_mode/index.html | 4 ++-- 48 files changed, 52 insertions(+), 52 deletions(-) (limited to 'files/zh-cn/web/javascript/reference') 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 --- -

+
{{JsSidebar("Classes")}}
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
{{EmbedInteractiveExample("pages/js/array-reverse.html")}}
-
-
+ +

语法

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
Atomics.sub() 静态方法在数组中的给定位置减去给定值,并返回该位置的旧值。这个原子操作保证在修改后的值被写回之前不会发生其他写操作。
-
+
{{EmbedInteractiveExample("pages/js/atomics-sub.html")}}
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
Atomics.xor() 静态方法会在数组中给定位置进行一次按位异或操作,并返回该位置的旧值。这个原子操作保证在修改后的值被写回之前不会发生其他写操作。
-
+
{{EmbedInteractiveExample("pages/js/atomics-xor.html")}}
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 ---
{{JSRef}}
-
+

getBigInt64() 方法从 {{jsxref("DataView")}}开始获取一个指定偏移量的有符号64位整数 (long long) 。

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 ---
{{jsSidebar("Objects")}}
-
+

decodeURI() 函数能解码由{{jsxref("encodeURI")}} 创建或其它流程得到的统一资源标识符(URI)。

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
bind() 函数会创建一个新的绑定函数bound function,BF)。绑定函数是一个 exotic function object(怪异函数对象,ECMAScript 2015 中的术语),它包装了原函数对象。调用绑定函数通常会导致执行包装函数
绑定函数具有以下内部属性:
-
+
    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();

    toSource方法返回下面的值:

    -

    +
    • 对于内置的Function对象,toSource返回下面的字符串:
    • 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

      浏览器兼容性

      -
      +
      {{Compat("javascript.builtins.Intl.NumberFormat")}}
      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

      相关链接

      -

      +
      • The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.
      • 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

        相关链接

        -

        +
        • {{jsxref("Math.abs()")}}
        • 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 -

          +

          规范

          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
          • The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.
          -

          + 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);
          {{Compat("javascript.builtins.Object.getOwnPropertyDescriptor")}}
          -
          +
          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
          {{jsxref("Object.prototype")}} 的 __proto__  属性是一个访问器属性(一个getter函数和一个setter函数), 暴露了通过它访问的对象的内部[[Prototype]] (一个对象或 {{jsxref("Global_Objects/null", "null")}})。
          -
          +

          使用__proto__是有争议的,也不鼓励使用它。因为它从来没有被包括在EcmaScript语言规范中,但是现代浏览器都实现了它。__proto__属性已在ECMAScript 6语言规范中标准化,用于确保Web浏览器的兼容性,因此它未来将被支持。它已被不推荐使用, 现在更推荐使用{{jsxref("Object.getPrototypeOf")}}/{{jsxref("Reflect.getPrototypeOf")}} 和{{jsxref("Object.setPrototypeOf")}}/{{jsxref("Reflect.setPrototypeOf")}}(尽管如此,设置对象的[[Prototype]]是一个缓慢的操作,如果性能是一个问题,应该避免)。

          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
          Object.seal()方法封闭一个对象,阻止添加新属性并将所有现有属性标记为不可配置。当前属性的值只要原来是可写的就可以改变。
          -
          +
          {{EmbedInteractiveExample("pages/js/object-seal.html")}}
          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
          Object.setPrototypeOf() 方法设置一个指定的对象的原型 ( 即, 内部[[Prototype]]属性)到另一个对象或  {{jsxref("null")}}。
          -
          +

          警告:由于现代 JavaScript 引擎优化属性访问所带来的特性的关系,更改对象的 [[Prototype]]各个浏览器和 JavaScript 引擎上都是一个很慢的操作。其在更改继承的性能上的影响是微妙而又广泛的,这不仅仅限于 obj.__proto__ = ... 语句上的时间花费,而且可能会延伸到任何代码,那些可以访问任何[[Prototype]]已被更改的对象的代码。如果你关心性能,你应该避免设置一个对象的 [[Prototype]]。相反,你应该使用 {{jsxref("Object.create()")}}来创建带有你想要的[[Prototype]]的新对象。

          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");
        • {{jsxref("Object.prototype.toString()")}}
        • -

          + 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 ---
          {{JSRef}}
          -
          +
          finally() 方法返回一个{{jsxref("Promise")}}。在promise结束时,无论结果是fulfilled或者是rejected,都会执行指定的回调函数。这为在Promise是否成功完成后都需要执行的代码提供了一种方式。
          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
          Promise.resolve(value)方法返回一个以给定值解析后的{{jsxref("Promise")}} 对象。如果这个值是一个 promise ,那么将返回这个 promise ;如果这个值是thenable(即带有{{jsxref("Promise.then", "\"then\" ")}}方法),返回的promise会“跟随”这个thenable的对象,采用它的最终状态;否则返回的promise将以此值完成。此函数将类promise对象的多层嵌套展平。
          -
          -
          + +

          警告:不要在解析为自身的thenable 上调用Promise.resolve。这将导致无限递归,因为它试图展平无限嵌套的promise。一个例子是将它与Angular中的异步管道一起使用。在此处了解更多信息。

          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是行的开始

          {{Compat("javascript.builtins.RegExp.sticky")}}

          -
          +

          相关链接

          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 ---
          {{JSRef}}
          -
          +

          Symbol.search 指定了一个搜索方法,这个方法接受用户输入的正则表达式,返回该正则表达式在字符串中匹配到的下标,这个方法由以下的方法来调用 {{jsxref("String.prototype.search()")}}。

          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 ---
          {{JSRef}}
          -
          +

          Symbol.toPrimitive 是一个内置的 Symbol 值,它是作为对象的函数值属性存在的,当一个对象转换为对应的原始值时,会调用此函数。

          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 ---
          {{JSRef("Global_Objects", "TypedArray", "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array")}}
          -
          +

          Uint32Array 表示一个由基于平台字节序的32位无符号字节组成的数组。如果需要对字节顺序进行控制(译者注:即 littleEndian 或 bigEndian),请使用 {{jsxref("DataView")}} 代替。数组中每个元素的初始值都是0。一旦创建,你可以用对象的方法引用数组里的元素,或者使用标准的数组索引语法(即,使用中括号)。

          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
          全局属性undefined表示原始值{{Glossary("Undefined", "undefined")}}。它是一个JavaScript的 {{Glossary("Primitive", "原始数据类型")}} 。
          -
          +
          {{js_property_attributes(0,0,0)}}
          -
          +
          {{EmbedInteractiveExample("pages/js/globalprops-undefined.html")}}
          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 ---
          {{JSRef}}
          -
          +
          deref方法返回{{jsxref("WeakRef")}} 实例的目标对象,如果目标对象已被垃圾收集,则返回undefined
          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 ---
          {{JSRef}}
          -
          +

          WeakRef对象允许您保留对另一个对象的弱引用,而不会阻止被弱引用对象被GC回收

          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 ---
          {{JSRef}}
          -
          +

          WeakSet 对象允许你将弱保持对象存储在一个集合中。

          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/相加
          {{EmbedInteractiveExample("pages/js/expressions-addition.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-addition-assignment.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-assignment.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-bitwise-and-assignment.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-bitwise-not.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-bitwise-xor-assignment.html")}}
          -
          + 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/自减
          {{EmbedInteractiveExample("pages/js/expressions-decrement.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-division.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-exponentiation-assignment.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-left-shift-assignment.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-multiplication.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-multiplication-assignment.html")}}
          -
          + 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/取余
          {{EmbedInteractiveExample("pages/js/expressions-remainder.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-remainder-assignment.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-right-shift-assignment.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-subtraction.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-subtraction-assignment.html")}}
          -
          + 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
          {{EmbedInteractiveExample("pages/js/expressions-unsigned-right-shift-assignment.html")}}
          -
          + 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 ---
          {{jsSidebar("Statements")}}
          -
          +
          let 语句声明一个块级作用域的本地变量,并且可选的将其初始化为一个值。
          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
          所以在没有对运行环境展开特性测试来验证对于严格模式相关方面支持的情况下,就算采用了严格模式也不一定会取得预期效果。严格模式代码和非严格模式代码可以共存,因此项目脚本可以渐进式地采用严格模式。
          -
          +
          严格模式对正常的 JavaScript语义做了一些更改。
          -
          +
          1. 严格模式通过抛出错误来消除了一些原有静默错误
          2. -- cgit v1.2.3-54-g00ecf