From ea514a38735125a2b5468300311ea8b2389c8863 Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:06 +0800 Subject: remove hidden class for zh-CN --- .../classes/public_class_fields/index.html | 4 --- .../reference/functions/arguments/index.html | 7 ----- .../functions/method_definitions/index.html | 2 -- .../global_objects/array/flatmap/index.html | 8 +---- .../global_objects/array/reduce/index.html | 4 --- .../global_objects/array/shift/index.html | 2 -- .../global_objects/array/slice/index.html | 2 -- .../global_objects/array/splice/index.html | 2 -- .../global_objects/array/values/index.html | 2 -- .../dataview/getbiguint64/index.html | 2 -- .../reference/global_objects/date/parse/index.html | 4 --- .../reference/global_objects/decodeuri/index.html | 12 -------- .../global_objects/decodeuricomponent/index.html | 4 --- .../reference/global_objects/eval/index.html | 2 -- .../global_objects/function/name/index.html | 4 --- .../global_objects/intl/datetimeformat/index.html | 2 -- .../intl/relativetimeformat/index.html | 2 -- .../reference/global_objects/math/index.html | 34 ---------------------- .../reference/global_objects/number/index.html | 4 --- .../global_objects/object/create/index.html | 2 -- .../reference/global_objects/parseint/index.html | 4 --- .../global_objects/promise/all/index.html | 2 -- .../reference/global_objects/promise/index.html | 4 +-- .../global_objects/promise/promise/index.html | 2 -- .../global_objects/promise/race/index.html | 2 -- .../global_objects/promise/resolve/index.html | 2 -- .../global_objects/promise/then/index.html | 2 -- .../global_objects/proxy/proxy/apply/index.html | 2 -- .../global_objects/regexp/test/index.html | 2 -- .../reference/global_objects/set/index.html | 4 --- .../reference/global_objects/set/size/index.html | 4 --- .../global_objects/sharedarraybuffer/index.html | 4 --- .../global_objects/string/match/index.html | 2 -- .../global_objects/string/padend/index.html | 2 -- .../global_objects/string/padstart/index.html | 2 -- .../global_objects/string/touppercase/index.html | 2 -- .../global_objects/symbol/hasinstance/index.html | 3 -- .../global_objects/symbol/split/index.html | 2 -- .../reference/global_objects/typedarray/index.html | 12 -------- .../global_objects/webassembly/instance/index.html | 9 ------ .../reference/operators/bitwise_and/index.html | 2 -- .../reference/operators/bitwise_or/index.html | 2 -- .../operators/bitwise_or_assignment/index.html | 2 -- .../reference/operators/bitwise_xor/index.html | 2 -- .../operators/division_assignment/index.html | 6 ---- .../reference/operators/exponentiation/index.html | 4 --- .../operators/exponentiation_assignment/index.html | 4 --- .../reference/operators/grouping/index.html | 2 -- .../reference/operators/inequality/index.html | 2 -- .../reference/operators/left_shift/index.html | 6 ---- .../operators/left_shift_assignment/index.html | 4 --- .../operators/less_than_or_equal/index.html | 2 -- .../reference/operators/logical_and/index.html | 2 -- .../operators/logical_and_assignment/index.html | 2 -- .../reference/operators/logical_not/index.html | 6 ---- .../logical_nullish_assignment/index.html | 2 -- .../reference/operators/logical_or/index.html | 2 -- .../nullish_coalescing_operator/index.html | 3 -- .../reference/operators/right_shift/index.html | 6 ---- .../operators/right_shift_assignment/index.html | 4 --- .../reference/operators/spread_syntax/index.html | 2 -- .../reference/operators/strict_equality/index.html | 2 -- .../operators/strict_inequality/index.html | 2 -- .../reference/operators/subtraction/index.html | 4 --- .../operators/subtraction_assignment/index.html | 4 --- .../reference/operators/unary_negation/index.html | 2 -- .../operators/unsigned_right_shift/index.html | 2 -- .../reference/statements/async_function/index.html | 2 -- .../reference/statements/function/index.html | 2 -- .../reference/statements/if...else/index.html | 4 --- .../reference/statements/throw/index.html | 4 --- 71 files changed, 3 insertions(+), 265 deletions(-) (limited to 'files/zh-cn/web/javascript/reference') diff --git a/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html b/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html index 45e9286ef6..64ce546ea0 100644 --- a/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html +++ b/files/zh-cn/web/javascript/reference/classes/public_class_fields/index.html @@ -142,10 +142,6 @@ console.log(sub.subInstanceField);

{{EmbedInteractiveExample("pages/js/classes-static.html")}}

- -

静态方法是在类的赋值阶段用Object.defineProperty方法添加到类中的。静态方法是可编辑的、不可遍历的和可配置的。

公共实例方法

diff --git a/files/zh-cn/web/javascript/reference/functions/arguments/index.html b/files/zh-cn/web/javascript/reference/functions/arguments/index.html index 8aff3819bd..501794e7f3 100644 --- a/files/zh-cn/web/javascript/reference/functions/arguments/index.html +++ b/files/zh-cn/web/javascript/reference/functions/arguments/index.html @@ -19,10 +19,6 @@ translation_of: Web/JavaScript/Reference/Functions/arguments

{{EmbedInteractiveExample("pages/js/functions-arguments.html")}}

- -

描述

@@ -98,9 +94,6 @@ var args = [...arguments];
arguments.callee
指向参数所属的当前执行的函数。
-

指向调用当前函数的函数。

diff --git a/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html b/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html index 372c50c880..ced585a822 100644 --- a/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html +++ b/files/zh-cn/web/javascript/reference/functions/method_definitions/index.html @@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Functions/Method_definitions
{{EmbedInteractiveExample("pages/js/functions-definitions.html")}}
- -

语法

var obj = {
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html
index 8383d4be6a..d0c4cfc9b5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/flatmap/index.html
@@ -13,9 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/flatMap
 
 

flatMap() 方法首先使用映射函数映射每个元素,然后将结果压缩成一个新数组。它与 map 连着深度值为1的 flat 几乎相同,但 flatMap 通常在合并成一种方法的效率稍微高一些。

- - - +

\{{EmbedInteractiveExample("pages/js/array-flatmap.html")}}

语法

@@ -110,10 +108,6 @@ arr.reduce((acc, x) => acc.concat([x, x * 2]), []);

请注意,这是低效的,并且应该避免大型阵列:在每次迭代中,它创建一个必须被垃圾收集的新临时数组,并且它将元素从当前的累加器数组复制到一个新的数组中,而不是将新的元素添加到现有的数组中。

- -

规范

diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html index cc217e28af..c362c85c77 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/reduce/index.html @@ -17,10 +17,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/Reduce
{{EmbedInteractiveExample("pages/js/array-reduce.html")}}
- -

reducer 函数接收4个参数:

diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html index 3675c12bc4..834f64aa96 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/shift/index.html @@ -15,8 +15,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/shift
{{EmbedInteractiveExample("pages/js/array-shift.html")}}
- -

语法

arr.shift()
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html index b69293d1db..0aa5dc1186 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html @@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/slice
{{EmbedInteractiveExample("pages/js/array-slice.html")}}
- -

语法

arr.slice([begin[, end]])
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html index b2bb7374dd..6d660999b6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html @@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/splice
{{EmbedInteractiveExample("pages/js/array-splice.html")}}
- -

语法

array.splice(start[, deleteCount[, item1[, item2[, ...]]]])
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
index d8cc03f53f..92e3920d88 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/values/index.html
@@ -84,8 +84,6 @@ iterator.next().value; //  "n"
 

如果数组中元素改变,那么迭代器的值也会改变

- -

规范

diff --git a/files/zh-cn/web/javascript/reference/global_objects/dataview/getbiguint64/index.html b/files/zh-cn/web/javascript/reference/global_objects/dataview/getbiguint64/index.html index d418df1366..08df757588 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/dataview/getbiguint64/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/dataview/getbiguint64/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getBigUint64
{{EmbedInteractiveExample("pages/js/dataview-getbiguint64.html")}}
- -

语法

dataview.getBigUint64(byteOffset [, littleEndian])
diff --git a/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html b/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html index 9646b069da..68a8d136e7 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/date/parse/index.html @@ -167,10 +167,6 @@ Date.parse('foo-bar 2014');

 

- -

{{Compat("javascript.builtins.Date.parse")}}

兼容性提示

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 f629d4ec9b..f45613cee2 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 @@ -16,10 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURI

{{EmbedInteractiveExample("pages/js/globalprops-decodeuri.html")}}

- -

语法

decodeURI(encodedURI)
@@ -106,11 +102,3 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURI
  • {{jsxref("encodeURI")}}
  • {{jsxref("encodeURIComponent")}}
  • - -

    - -

    - -

    - -

    diff --git a/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html b/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html index ebe7d639ed..7db77bdbf1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/decodeuricomponent/index.html @@ -144,7 +144,3 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURIComponent
  • {{jsxref("encodeURI")}}
  • {{jsxref("encodeURIComponent")}}
  • - -

    - -

    diff --git a/files/zh-cn/web/javascript/reference/global_objects/eval/index.html b/files/zh-cn/web/javascript/reference/global_objects/eval/index.html index dc2e4f95a6..9e2ecdfcef 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/eval/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/eval/index.html @@ -13,8 +13,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/eval
    {{EmbedInteractiveExample("pages/js/globalprops-eval.html")}}
    - -

    语法

    eval(string)
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html index 80253d1caa..61f96599b8 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/function/name/index.html @@ -60,10 +60,6 @@ try { object_someMethod } catch(e) { alert(e); }

    你不能更改函数的名称,此属性是只读的:

    - -
    var object = {
       // anonymous
       someMethod: function() {}
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
    index 1f446b3247..874f0cdbf7 100644
    --- a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
    +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
     
     
    {{EmbedInteractiveExample("pages/js/intl-datetimeformat.html")}}
    - -

    语法

    new Intl.DateTimeFormat([locales[, options]])
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/relativetimeformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/relativetimeformat/index.html
    index a05c3385dd..d8206fe263 100644
    --- a/files/zh-cn/web/javascript/reference/global_objects/intl/relativetimeformat/index.html
    +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/relativetimeformat/index.html
    @@ -10,8 +10,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
     
     
    {{EmbedInteractiveExample("pages/js/intl-relativetimeformat.html")}}
    - -

    句法

    new Intl.RelativeTimeFormat([locales[, options]])
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/index.html
    index 3064bc3893..ae08c53771 100644
    --- a/files/zh-cn/web/javascript/reference/global_objects/math/index.html
    +++ b/files/zh-cn/web/javascript/reference/global_objects/math/index.html
    @@ -127,40 +127,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math
      
    返回一个数的整数部分,直接去除其小数点及之后的部分。
    - -

    规范

    diff --git a/files/zh-cn/web/javascript/reference/global_objects/number/index.html b/files/zh-cn/web/javascript/reference/global_objects/number/index.html index 7400ad4ee2..d53c952ea3 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/number/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/number/index.html @@ -178,10 +178,6 @@ Number('-Infinity') //-Infinity

    浏览器兼容性

    - -

    {{Compat("javascript.builtins.Number")}}

    diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/create/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/create/index.html index 671c542a48..255cd9ec0c 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/create/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/create/index.html @@ -16,8 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/create
    {{EmbedInteractiveExample("pages/js/object-create.html", "taller")}}
    - -

    语法

    Object.create(proto,[propertiesObject])
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html b/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html index 729aee8834..4f2def476a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/parseint/index.html @@ -16,10 +16,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/parseInt

    {{EmbedInteractiveExample("pages/js/globalprops-parseint.html")}}

    - -

    语法

    parseInt(string, radix);
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/all/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/all/index.html index 113760c25d..6ba1063df7 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/all/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/all/index.html @@ -17,8 +17,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise/all
    {{EmbedInteractiveExample("pages/js/promise-all.html")}}
    - -

    语法

    Promise.all(iterable);
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/promise/index.html b/files/zh-cn/web/javascript/reference/global_objects/promise/index.html index 418851f99a..5a5fd2d613 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/promise/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/promise/index.html @@ -196,7 +196,7 @@ myFirstPromise.then(function(successMessage){

    高级示例

    - -
    diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html index c857ac2b41..017d0d464c 100644 --- a/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_and/index.html @@ -10,8 +10,6 @@ original_slug: Web/JavaScript/Reference/Operators/按位与
    {{EmbedInteractiveExample("pages/js/expressions-bitwise-and.html")}}
    - -

    语法

    a & b
    diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html
    index 245da8fdab..2f83d5d956 100644
    --- a/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_or/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_OR
     
     
    {{EmbedInteractiveExample("pages/js/expressions-bitwise-or.html")}}
    - -

    语法

    a | b
    diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_or_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_or_assignment/index.html
    index fad4f94082..c8e2692723 100644
    --- a/files/zh-cn/web/javascript/reference/operators/bitwise_or_assignment/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_or_assignment/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_OR_assignment
     
     
    {{EmbedInteractiveExample("pages/js/expressions-bitwise-or-assignment.html")}}
    - -

    语法

    Operator: x |= y
    diff --git a/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html b/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html
    index e68e1d436b..1ec5d48f0a 100644
    --- a/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/bitwise_xor/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Bitwise_XOR
     
     
    {{EmbedInteractiveExample("pages/js/expressions-bitwise-xor.html")}}
    - -

    语法

    a ^ b
    diff --git a/files/zh-cn/web/javascript/reference/operators/division_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/division_assignment/index.html
    index a9d3508d00..167f41d33f 100644
    --- a/files/zh-cn/web/javascript/reference/operators/division_assignment/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/division_assignment/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Division_assignment
     
     
    {{EmbedInteractiveExample("pages/js/expressions-division-assignment.html")}}
    - -

    语法

    Operator: x /= y
    @@ -52,7 +50,3 @@ bar /= 0     // Infinity
  • Assignment operators in the JS guide
  • Division operator
  • - -

    - -

    diff --git a/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html b/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html index 7e138abfa2..a98fd33e79 100644 --- a/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html +++ b/files/zh-cn/web/javascript/reference/operators/exponentiation/index.html @@ -101,7 +101,3 @@ NaN ** 2 // NaN
  • Unary negation operator
  • Unary plus operator
  • - -

    - -

    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 bd8e58da23..615530a4b4 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 @@ -53,7 +53,3 @@ bar **= 'foo' // NaN
  • Assignment operators in the JS guide
  • Exponentiation operator
  • - -

    - -

    diff --git a/files/zh-cn/web/javascript/reference/operators/grouping/index.html b/files/zh-cn/web/javascript/reference/operators/grouping/index.html index 5856cc2324..77e572a4ce 100644 --- a/files/zh-cn/web/javascript/reference/operators/grouping/index.html +++ b/files/zh-cn/web/javascript/reference/operators/grouping/index.html @@ -13,8 +13,6 @@ translation_of: Web/JavaScript/Reference/Operators/Grouping
    {{EmbedInteractiveExample("pages/js/expressions-groupingoperator.html")}}
    - -

    语法

    译者:下列语法是 MDN 上已知的最简单的之一。

    diff --git a/files/zh-cn/web/javascript/reference/operators/inequality/index.html b/files/zh-cn/web/javascript/reference/operators/inequality/index.html index 6d5ed6ff6c..131144457c 100644 --- a/files/zh-cn/web/javascript/reference/operators/inequality/index.html +++ b/files/zh-cn/web/javascript/reference/operators/inequality/index.html @@ -14,8 +14,6 @@ translation_of: Web/JavaScript/Reference/Operators/Inequality
    {{EmbedInteractiveExample("pages/js/expressions-inequality.html")}}
    - -

    语法

    x != y
    diff --git a/files/zh-cn/web/javascript/reference/operators/left_shift/index.html b/files/zh-cn/web/javascript/reference/operators/left_shift/index.html index 4bae0bcde0..3c4f0b3b6a 100644 --- a/files/zh-cn/web/javascript/reference/operators/left_shift/index.html +++ b/files/zh-cn/web/javascript/reference/operators/left_shift/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Left_shift
    {{EmbedInteractiveExample("pages/js/expressions-left-shift.html")}}
    - -

    语法

    a << b
    @@ -66,7 +64,3 @@ translation_of: Web/JavaScript/Reference/Operators/Left_shift
      
  • Bitwise operators in the JS guide
  • Left shift assignment operator
  • - -

    - -

    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 e48b9616d0..c39333f30b 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 @@ -53,7 +53,3 @@ a <<= 2; // 20
  • Assignment operators in the JS guide
  • Left shift operator
  • - -

    - -

    diff --git a/files/zh-cn/web/javascript/reference/operators/less_than_or_equal/index.html b/files/zh-cn/web/javascript/reference/operators/less_than_or_equal/index.html index 498dc2bbfd..91d207ef1f 100644 --- a/files/zh-cn/web/javascript/reference/operators/less_than_or_equal/index.html +++ b/files/zh-cn/web/javascript/reference/operators/less_than_or_equal/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Less_than_or_equal
    {{EmbedInteractiveExample("pages/js/expressions-less-than-or-equal.html")}}
    - -

    Syntax

     x <= y
    diff --git a/files/zh-cn/web/javascript/reference/operators/logical_and/index.html b/files/zh-cn/web/javascript/reference/operators/logical_and/index.html index e418a76518..531875401e 100644 --- a/files/zh-cn/web/javascript/reference/operators/logical_and/index.html +++ b/files/zh-cn/web/javascript/reference/operators/logical_and/index.html @@ -10,8 +10,6 @@ original_slug: Web/JavaScript/Reference/Operators/逻辑和
    {{EmbedInteractiveExample("pages/js/expressions-logical-and.html", "shorter")}}
    - -

    Syntax

    expr1 && expr2
    diff --git a/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html
    index 4ee00585a5..0f4604f232 100644
    --- a/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_AND_assignment
     
     
    {{EmbedInteractiveExample("pages/js/expressions-logical-and-assignment.html")}}
    - -

    语法

    expr1 &&= expr2
    diff --git a/files/zh-cn/web/javascript/reference/operators/logical_not/index.html b/files/zh-cn/web/javascript/reference/operators/logical_not/index.html
    index e27ad4db4f..222c1e6e3b 100644
    --- a/files/zh-cn/web/javascript/reference/operators/logical_not/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/logical_not/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_NOT
     
     
    {{EmbedInteractiveExample("pages/js/expressions-logical-not.html", "shorter")}}
    - -

    语法

    !expr
    @@ -98,7 +96,3 @@ n6 = !!Boolean(false)         // !!falsy returns false
  • {{Glossary("Truthy")}}
  • {{Glossary("Falsy")}}
  • - -

    - -

    diff --git a/files/zh-cn/web/javascript/reference/operators/logical_nullish_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/logical_nullish_assignment/index.html index c4fea43591..a97320ba3a 100644 --- a/files/zh-cn/web/javascript/reference/operators/logical_nullish_assignment/index.html +++ b/files/zh-cn/web/javascript/reference/operators/logical_nullish_assignment/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_nullish_assignment
    {{EmbedInteractiveExample("pages/js/expressions-logical-nullish-assignment.html")}}
    - -

    语法

    expr1 ??= expr2
    diff --git a/files/zh-cn/web/javascript/reference/operators/logical_or/index.html b/files/zh-cn/web/javascript/reference/operators/logical_or/index.html
    index 3604b99140..d159e76866 100644
    --- a/files/zh-cn/web/javascript/reference/operators/logical_or/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/logical_or/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_OR
     
     
    {{EmbedInteractiveExample("pages/js/expressions-logical-or.html", "shorter")}}
    - -

    语法

    expr1 || expr2
    diff --git a/files/zh-cn/web/javascript/reference/operators/nullish_coalescing_operator/index.html b/files/zh-cn/web/javascript/reference/operators/nullish_coalescing_operator/index.html
    index a70b8dad19..6888b2f10b 100644
    --- a/files/zh-cn/web/javascript/reference/operators/nullish_coalescing_operator/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/nullish_coalescing_operator/index.html
    @@ -18,9 +18,6 @@ translation_of: Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
     
     
    {{EmbedInteractiveExample("pages/js/expressions-nullishcoalescingoperator.html")}}
    - -

    语法

    leftExpr ?? rightExpr
    diff --git a/files/zh-cn/web/javascript/reference/operators/right_shift/index.html b/files/zh-cn/web/javascript/reference/operators/right_shift/index.html
    index 583da5cafe..b8275e16d7 100644
    --- a/files/zh-cn/web/javascript/reference/operators/right_shift/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/right_shift/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Right_shift
     
     
    {{EmbedInteractiveExample("pages/js/expressions-right-shift.html")}}
    - -

    语法

    a >> b
    @@ -69,7 +67,3 @@ translation_of: Web/JavaScript/Reference/Operators/Right_shift
      
  • Bitwise operators in the JS guide
  • Right shift assignment operator
  • - -

    - -

    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 0ebfbbd51e..069f47a628 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 @@ -53,7 +53,3 @@ b >>= 2; // -2 (-00000000000000000000000000000010)
  • Assignment operators in the JS guide
  • Right shift operator
  • - -

    - -

    diff --git a/files/zh-cn/web/javascript/reference/operators/spread_syntax/index.html b/files/zh-cn/web/javascript/reference/operators/spread_syntax/index.html index 3f21c5b960..631a2ff8ca 100644 --- a/files/zh-cn/web/javascript/reference/operators/spread_syntax/index.html +++ b/files/zh-cn/web/javascript/reference/operators/spread_syntax/index.html @@ -14,8 +14,6 @@ translation_of: Web/JavaScript/Reference/Operators/Spread_syntax
    {{EmbedInteractiveExample("pages/js/expressions-spreadsyntax.html")}}
    - -

    语法

    函数调用:

    diff --git a/files/zh-cn/web/javascript/reference/operators/strict_equality/index.html b/files/zh-cn/web/javascript/reference/operators/strict_equality/index.html index 1b8211841a..a352c8407b 100644 --- a/files/zh-cn/web/javascript/reference/operators/strict_equality/index.html +++ b/files/zh-cn/web/javascript/reference/operators/strict_equality/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Strict_equality
    {{EmbedInteractiveExample("pages/js/expressions-strict-equality.html")}}
    - -

    语法

    x === y
    diff --git a/files/zh-cn/web/javascript/reference/operators/strict_inequality/index.html b/files/zh-cn/web/javascript/reference/operators/strict_inequality/index.html index 26efd1748f..083c9470a7 100644 --- a/files/zh-cn/web/javascript/reference/operators/strict_inequality/index.html +++ b/files/zh-cn/web/javascript/reference/operators/strict_inequality/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Strict_inequality
    {{EmbedInteractiveExample("pages/js/expressions-strict-equality.html")}}
    - -

    语法

    x !== y
    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 c4307e2ace..7eb1f7814a 100644 --- a/files/zh-cn/web/javascript/reference/operators/subtraction/index.html +++ b/files/zh-cn/web/javascript/reference/operators/subtraction/index.html @@ -61,7 +61,3 @@ translation_of: Web/JavaScript/Reference/Operators/Subtraction
  • Unary negation operator
  • Unary plus operator
  • - -

    - -

    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 9d96a67f7e..8052f01b9e 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 @@ -53,7 +53,3 @@ bar -= 'foo' // NaN
  • Assignment operators in the JS guide
  • Subtraction operator
  • - -

    - -

    diff --git a/files/zh-cn/web/javascript/reference/operators/unary_negation/index.html b/files/zh-cn/web/javascript/reference/operators/unary_negation/index.html index 887a79a2a0..97eac43a02 100644 --- a/files/zh-cn/web/javascript/reference/operators/unary_negation/index.html +++ b/files/zh-cn/web/javascript/reference/operators/unary_negation/index.html @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Unary_negation
    {{EmbedInteractiveExample("pages/js/expressions-unary-negation.html")}}
    - -

    语法

    Operator: -x
    diff --git a/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift/index.html b/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift/index.html
    index 52f18ea92c..eb7b984194 100644
    --- a/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift/index.html
    +++ b/files/zh-cn/web/javascript/reference/operators/unsigned_right_shift/index.html
    @@ -9,8 +9,6 @@ translation_of: Web/JavaScript/Reference/Operators/Unsigned_right_shift
     
     
    {{EmbedInteractiveExample("pages/js/expressions-unsigned-right-shift.html")}}
    - -

    语法

    a >>> b
    diff --git a/files/zh-cn/web/javascript/reference/statements/async_function/index.html b/files/zh-cn/web/javascript/reference/statements/async_function/index.html
    index b4bdd88173..bca5f86818 100644
    --- a/files/zh-cn/web/javascript/reference/statements/async_function/index.html
    +++ b/files/zh-cn/web/javascript/reference/statements/async_function/index.html
    @@ -19,8 +19,6 @@ translation_of: Web/JavaScript/Reference/Statements/async_function
     
     
    {{EmbedInteractiveExample("pages/js/statement-async.html", "taller")}}
    - -

    语法

    async function name([param[, param[, ... param]]]) {
    diff --git a/files/zh-cn/web/javascript/reference/statements/function/index.html b/files/zh-cn/web/javascript/reference/statements/function/index.html
    index 0ab978503d..4d8e036a2e 100644
    --- a/files/zh-cn/web/javascript/reference/statements/function/index.html
    +++ b/files/zh-cn/web/javascript/reference/statements/function/index.html
    @@ -17,8 +17,6 @@ translation_of: Web/JavaScript/Reference/Statements/function
     

    你还可以使用  {{jsxref("Function")}} 构造函数和 一个{{jsxref("Operators/function", "function expression")}} 定义函数。

    - -

    语法

    function name([param,[, param,[..., param]]]) {
    diff --git a/files/zh-cn/web/javascript/reference/statements/if...else/index.html b/files/zh-cn/web/javascript/reference/statements/if...else/index.html
    index 8b57fa8188..3c64ce0538 100644
    --- a/files/zh-cn/web/javascript/reference/statements/if...else/index.html
    +++ b/files/zh-cn/web/javascript/reference/statements/if...else/index.html
    @@ -14,10 +14,6 @@ translation_of: Web/JavaScript/Reference/Statements/if...else
     
     

    {{EmbedInteractiveExample("pages/js/statement-ifelse.html")}}

    - -

    语法

    if (condition)
    diff --git a/files/zh-cn/web/javascript/reference/statements/throw/index.html b/files/zh-cn/web/javascript/reference/statements/throw/index.html
    index 081352fdea..913f08361f 100644
    --- a/files/zh-cn/web/javascript/reference/statements/throw/index.html
    +++ b/files/zh-cn/web/javascript/reference/statements/throw/index.html
    @@ -12,10 +12,6 @@ translation_of: Web/JavaScript/Reference/Statements/throw
     
     

    {{EmbedInteractiveExample("pages/js/statement-throw.html")}}

    - -

    语法

    throw expression; 
    -- cgit v1.2.3-54-g00ecf