From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../deprecated_and_obsolete_features/index.html | 6 ++-- .../functions/arguments/callee/index.html | 6 ++-- .../reference/functions/arguments/index.html | 12 ++++---- .../functions/arguments/length/index.html | 8 +++--- .../reference/functions/arrow_functions/index.html | 4 +-- .../functions/default_parameters/index.html | 10 +++---- .../javascript/reference/functions/get/index.html | 6 ++-- .../web/javascript/reference/functions/index.html | 6 ++-- .../reference/functions/rest_parameters/index.html | 6 ++-- .../javascript/reference/functions/set/index.html | 6 ++-- .../global_objects/array/concat/index.html | 12 ++++---- .../global_objects/array/copywithin/index.html | 2 +- .../reference/global_objects/array/fill/index.html | 8 +++--- .../reference/global_objects/array/find/index.html | 10 +++---- .../global_objects/array/findindex/index.html | 12 ++++---- .../global_objects/array/indexof/index.html | 4 +-- .../reference/global_objects/array/join/index.html | 16 +++++------ .../reference/global_objects/array/keys/index.html | 10 +++---- .../global_objects/array/lastindexof/index.html | 18 ++++++------ .../global_objects/array/length/index.html | 8 +++--- .../reference/global_objects/array/map/index.html | 16 +++++------ .../reference/global_objects/array/of/index.html | 6 ++-- .../reference/global_objects/array/pop/index.html | 8 +++--- .../reference/global_objects/array/push/index.html | 2 +- .../global_objects/array/reverse/index.html | 2 +- .../global_objects/array/slice/index.html | 6 ++-- .../reference/global_objects/array/some/index.html | 14 +++++----- .../reference/global_objects/array/sort/index.html | 16 +++++------ .../global_objects/array/tolocalestring/index.html | 4 +-- .../global_objects/array/tosource/index.html | 14 +++++----- .../global_objects/array/tostring/index.html | 6 ++-- .../global_objects/array/unshift/index.html | 6 ++-- .../global_objects/boolean/tostring/index.html | 6 ++-- .../global_objects/boolean/valueof/index.html | 10 +++---- .../global_objects/date/getdate/index.html | 12 ++++---- .../global_objects/date/getday/index.html | 10 +++---- .../global_objects/date/getfullyear/index.html | 10 +++---- .../global_objects/date/gethours/index.html | 10 +++---- .../global_objects/date/getmilliseconds/index.html | 12 ++++---- .../global_objects/date/getminutes/index.html | 12 ++++---- .../global_objects/date/getmonth/index.html | 12 ++++---- .../global_objects/date/getseconds/index.html | 12 ++++---- .../global_objects/date/gettime/index.html | 10 +++---- .../date/gettimezoneoffset/index.html | 10 +++---- .../global_objects/date/getutcdate/index.html | 12 ++++---- .../global_objects/date/getutcday/index.html | 12 ++++---- .../global_objects/date/getutcfullyear/index.html | 12 ++++---- .../global_objects/date/getutchours/index.html | 12 ++++---- .../date/getutcmilliseconds/index.html | 12 ++++---- .../global_objects/date/getutcminutes/index.html | 12 ++++---- .../global_objects/date/getutcmonth/index.html | 12 ++++---- .../global_objects/date/getutcseconds/index.html | 12 ++++---- .../global_objects/date/getyear/index.html | 22 +++++++-------- .../reference/global_objects/date/parse/index.html | 16 +++++------ .../global_objects/date/setdate/index.html | 12 ++++---- .../global_objects/date/setfullyear/index.html | 12 ++++---- .../global_objects/date/sethours/index.html | 14 +++++----- .../global_objects/date/setmilliseconds/index.html | 12 ++++---- .../global_objects/date/setminutes/index.html | 14 +++++----- .../global_objects/date/setmonth/index.html | 14 +++++----- .../global_objects/date/setseconds/index.html | 12 ++++---- .../global_objects/date/settime/index.html | 14 +++++----- .../global_objects/date/setutcdate/index.html | 12 ++++---- .../global_objects/date/todatestring/index.html | 10 +++---- .../global_objects/date/togmtstring/index.html | 8 +++--- .../global_objects/date/toisostring/index.html | 6 ++-- .../global_objects/date/tojson/index.html | 8 +++--- .../date/tolocaledatestring/index.html | 18 ++++++------ .../global_objects/date/tolocalestring/index.html | 18 ++++++------ .../date/tolocaletimestring/index.html | 18 ++++++------ .../global_objects/date/tostring/index.html | 12 ++++---- .../global_objects/date/totimestring/index.html | 10 +++---- .../global_objects/date/toutcstring/index.html | 12 ++++---- .../reference/global_objects/date/utc/index.html | 12 ++++---- .../global_objects/date/valueof/index.html | 12 ++++---- .../reference/global_objects/error/index.html | 22 +++++++-------- .../global_objects/error/message/index.html | 10 +++---- .../reference/global_objects/error/name/index.html | 10 +++---- .../global_objects/error/tostring/index.html | 10 +++---- .../reference/global_objects/escape/index.html | 10 +++---- .../reference/global_objects/eval/index.html | 2 +- .../reference/global_objects/evalerror/index.html | 8 +++--- .../global_objects/float32array/index.html | 2 +- .../global_objects/function/apply/index.html | 14 +++++----- .../global_objects/function/call/index.html | 2 +- .../global_objects/function/caller/index.html | 10 +++---- .../global_objects/function/length/index.html | 4 +-- .../global_objects/function/tosource/index.html | 10 +++---- .../global_objects/function/tostring/index.html | 6 ++-- .../reference/global_objects/generator/index.html | 2 +- .../global_objects/generator/next/index.html | 12 ++++---- .../global_objects/generator/return/index.html | 12 ++++---- .../global_objects/generator/throw/index.html | 10 +++---- .../global_objects/generatorfunction/index.html | 14 +++++----- .../reference/global_objects/infinity/index.html | 2 +- .../reference/global_objects/isfinite/index.html | 8 +++--- .../reference/global_objects/isnan/index.html | 12 ++++---- .../reference/global_objects/json/index.html | 14 +++++----- .../global_objects/json/stringify/index.html | 4 +-- .../reference/global_objects/math/abs/index.html | 12 ++++---- .../reference/global_objects/math/acos/index.html | 14 +++++----- .../reference/global_objects/math/asin/index.html | 14 +++++----- .../reference/global_objects/math/atan/index.html | 14 +++++----- .../reference/global_objects/math/atan2/index.html | 14 +++++----- .../reference/global_objects/math/cbrt/index.html | 10 +++---- .../reference/global_objects/math/clz32/index.html | 12 ++++---- .../reference/global_objects/math/cos/index.html | 14 +++++----- .../reference/global_objects/math/e/index.html | 10 +++---- .../reference/global_objects/math/exp/index.html | 14 +++++----- .../reference/global_objects/math/expm1/index.html | 12 ++++---- .../reference/global_objects/math/floor/index.html | 14 +++++----- .../global_objects/math/fround/index.html | 20 +++++++------- .../reference/global_objects/math/hypot/index.html | 8 +++--- .../reference/global_objects/math/imul/index.html | 2 +- .../reference/global_objects/math/ln10/index.html | 10 +++---- .../reference/global_objects/math/ln2/index.html | 10 +++---- .../reference/global_objects/math/log/index.html | 12 ++++---- .../reference/global_objects/math/log10/index.html | 12 ++++---- .../global_objects/math/log10e/index.html | 10 +++---- .../reference/global_objects/math/log1p/index.html | 10 +++---- .../reference/global_objects/math/log2/index.html | 12 ++++---- .../reference/global_objects/math/log2e/index.html | 10 +++---- .../reference/global_objects/math/max/index.html | 12 ++++---- .../reference/global_objects/math/min/index.html | 14 +++++----- .../reference/global_objects/math/pi/index.html | 10 +++---- .../reference/global_objects/math/pow/index.html | 12 ++++---- .../global_objects/math/random/index.html | 6 ++-- .../reference/global_objects/math/round/index.html | 12 ++++---- .../reference/global_objects/math/sign/index.html | 12 ++++---- .../reference/global_objects/math/sin/index.html | 14 +++++----- .../reference/global_objects/math/sinh/index.html | 12 ++++---- .../reference/global_objects/math/sqrt/index.html | 10 +++---- .../global_objects/math/sqrt1_2/index.html | 10 +++---- .../reference/global_objects/math/sqrt2/index.html | 10 +++---- .../reference/global_objects/math/tan/index.html | 12 ++++---- .../reference/global_objects/math/trunc/index.html | 8 +++--- .../reference/global_objects/nan/index.html | 4 +-- .../reference/global_objects/number/index.html | 24 ++++++++-------- .../global_objects/number/isfinite/index.html | 8 +++--- .../global_objects/number/isinteger/index.html | 14 +++++----- .../global_objects/number/issafeinteger/index.html | 8 +++--- .../global_objects/number/max_value/index.html | 10 +++---- .../global_objects/number/min_value/index.html | 10 +++---- .../reference/global_objects/number/nan/index.html | 4 +-- .../number/negative_infinity/index.html | 8 +++--- .../global_objects/number/parsefloat/index.html | 10 +++---- .../global_objects/number/parseint/index.html | 6 ++-- .../number/positive_infinity/index.html | 2 +- .../global_objects/number/toexponential/index.html | 14 +++++----- .../global_objects/number/tofixed/index.html | 10 +++---- .../global_objects/number/toprecision/index.html | 12 ++++---- .../global_objects/number/tosource/index.html | 10 +++---- .../global_objects/number/tostring/index.html | 8 +++--- .../global_objects/number/valueof/index.html | 12 ++++---- .../object/__definegetter__/index.html | 16 +++++------ .../object/__definesetter__/index.html | 14 +++++----- .../object/__lookupgetter__/index.html | 14 +++++----- .../global_objects/object/assign/index.html | 32 +++++++++++----------- .../global_objects/object/constructor/index.html | 8 +++--- .../global_objects/object/create/index.html | 12 ++++---- .../object/defineproperties/index.html | 6 ++-- .../global_objects/object/freeze/index.html | 10 +++---- .../object/getownpropertydescriptor/index.html | 8 +++--- .../object/getownpropertynames/index.html | 8 +++--- .../object/getownpropertysymbols/index.html | 6 ++-- .../object/getprototypeof/index.html | 6 ++-- .../reference/global_objects/object/index.html | 6 ++-- .../global_objects/object/isextensible/index.html | 12 ++++---- .../global_objects/object/isfrozen/index.html | 10 +++---- .../global_objects/object/issealed/index.html | 2 +- .../global_objects/object/keys/index.html | 8 +++--- .../object/preventextensions/index.html | 10 +++---- .../global_objects/object/seal/index.html | 12 ++++---- .../object/setprototypeof/index.html | 10 +++---- .../object/tolocalestring/index.html | 6 ++-- .../global_objects/object/tosource/index.html | 14 +++++----- .../global_objects/object/valueof/index.html | 4 +-- .../reference/global_objects/parsefloat/index.html | 2 +- .../reference/global_objects/parseint/index.html | 2 +- .../global_objects/promise/catch/index.html | 4 +-- .../global_objects/promise/race/index.html | 4 +-- .../global_objects/promise/reject/index.html | 4 +-- .../global_objects/promise/resolve/index.html | 4 +-- .../global_objects/referenceerror/index.html | 26 +++++++++--------- .../global_objects/regexp/exec/index.html | 6 ++-- .../global_objects/regexp/global/index.html | 10 +++---- .../global_objects/regexp/ignorecase/index.html | 10 +++---- .../reference/global_objects/regexp/index.html | 10 +++---- .../global_objects/regexp/lastindex/index.html | 6 ++-- .../global_objects/regexp/multiline/index.html | 10 +++---- .../global_objects/regexp/source/index.html | 10 +++---- .../global_objects/regexp/test/index.html | 10 +++---- .../global_objects/regexp/tosource/index.html | 8 +++--- .../global_objects/regexp/tostring/index.html | 14 +++++----- .../reference/global_objects/set/add/index.html | 4 +-- .../reference/global_objects/set/clear/index.html | 4 +-- .../reference/global_objects/set/delete/index.html | 6 ++-- .../reference/global_objects/set/has/index.html | 8 +++--- .../reference/global_objects/set/index.html | 2 +- .../global_objects/string/anchor/index.html | 2 +- .../global_objects/string/charat/index.html | 14 +++++----- .../global_objects/string/charcodeat/index.html | 4 +-- .../global_objects/string/concat/index.html | 10 +++---- .../global_objects/string/fromcharcode/index.html | 8 +++--- .../global_objects/string/includes/index.html | 4 +-- .../reference/global_objects/string/index.html | 18 ++++++------ .../global_objects/string/indexof/index.html | 2 +- .../global_objects/string/lastindexof/index.html | 12 ++++---- .../global_objects/string/length/index.html | 8 +++--- .../global_objects/string/link/index.html | 2 +- .../global_objects/string/match/index.html | 16 +++++------ .../global_objects/string/repeat/index.html | 8 +++--- .../global_objects/string/replace/index.html | 2 +- .../global_objects/string/slice/index.html | 2 +- .../global_objects/string/split/index.html | 16 +++++------ .../global_objects/string/substr/index.html | 12 ++++---- .../global_objects/string/substring/index.html | 14 +++++----- .../global_objects/string/tostring/index.html | 12 ++++---- .../global_objects/string/trimend/index.html | 8 +++--- .../reference/global_objects/symbol/for/index.html | 6 ++-- .../reference/global_objects/symbol/index.html | 16 +++++------ .../global_objects/symbol/keyfor/index.html | 6 ++-- .../global_objects/symbol/tostring/index.html | 8 +++--- .../global_objects/symbol/valueof/index.html | 8 +++--- .../global_objects/syntaxerror/index.html | 22 +++++++-------- .../reference/global_objects/typeerror/index.html | 22 +++++++-------- .../global_objects/uint32array/index.html | 2 +- .../reference/global_objects/uint8array/index.html | 2 +- .../reference/global_objects/undefined/index.html | 4 +-- .../global_objects/weakmap/delete/index.html | 6 ++-- .../reference/global_objects/weakset/index.html | 4 +-- .../global_objects/webassembly/compile/index.html | 2 +- .../webassembly/compileerror/index.html | 2 +- .../webassembly/compilestreaming/index.html | 2 +- .../global_objects/webassembly/global/index.html | 2 +- .../global_objects/webassembly/index.html | 2 +- .../global_objects/webassembly/instance/index.html | 2 +- .../webassembly/instantiate/index.html | 2 +- .../webassembly/instantiatestreaming/index.html | 2 +- .../global_objects/webassembly/memory/index.html | 2 +- .../global_objects/webassembly/module/index.html | 2 +- .../webassembly/runtimeerror/index.html | 2 +- .../global_objects/webassembly/table/index.html | 2 +- .../global_objects/webassembly/validate/index.html | 2 +- .../reference/operators/comma_operator/index.html | 2 +- .../reference/operators/delete/index.html | 10 +++---- .../reference/operators/function/index.html | 8 +++--- .../reference/operators/grouping/index.html | 2 +- .../javascript/reference/operators/in/index.html | 12 ++++---- .../reference/operators/instanceof/index.html | 14 +++++----- .../reference/operators/remainder/index.html | 2 +- .../reference/operators/typeof/index.html | 2 +- .../javascript/reference/operators/void/index.html | 2 +- .../reference/operators/yield/index.html | 10 +++---- .../reference/operators/yield_star_/index.html | 10 +++---- .../reference/statements/block/index.html | 2 +- .../reference/statements/break/index.html | 2 +- .../reference/statements/continue/index.html | 8 +++--- .../reference/statements/debugger/index.html | 2 +- .../reference/statements/do...while/index.html | 8 +++--- .../reference/statements/empty/index.html | 2 +- .../reference/statements/for...in/index.html | 6 ++-- .../reference/statements/function/index.html | 8 +++--- .../reference/statements/if...else/index.html | 12 ++++---- .../reference/statements/label/index.html | 2 +- .../reference/statements/return/index.html | 8 +++--- .../javascript/reference/statements/var/index.html | 4 +-- .../reference/statements/with/index.html | 10 +++---- 268 files changed, 1225 insertions(+), 1225 deletions(-) (limited to 'files/zh-cn/web/javascript/reference') diff --git a/files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/index.html b/files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/index.html index 3700781397..9c4c9aa083 100644 --- a/files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/index.html +++ b/files/zh-cn/web/javascript/reference/deprecated_and_obsolete_features/index.html @@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Deprecated_and_obsolete_features

这些废弃的特性仍然可以使用,但是使用时一定要保持谨慎,因为它们很可能会在未来的某个时间点被移除。应当将其从需要使用的代码中移除。

-

RegExp 对象的属性

+

RegExp 对象的属性

下面的这些属性已经被废弃。注意,这和{{jsxref("String.replace", "替换字符串")}}中使用的同名标记没有直接关系。

@@ -110,7 +110,7 @@ translation_of: Web/JavaScript/Reference/Deprecated_and_obsolete_features -

RegExp 对象的方法

+

RegExp 对象的方法

{{jsxref("RegExp.compile", "compile()")}} 方法已被废弃。

@@ -170,7 +170,7 @@ translation_of: Web/JavaScript/Reference/Deprecated_and_obsolete_features -

转义序列

+

转义序列

字符串字面量(literal)和正则表达式字面量中的八进制转义序列(反斜杠 \ 后跟一到三位的八进制数字)已被废弃。

diff --git a/files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html b/files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html index a2847f3683..65e9123fe5 100644 --- a/files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html +++ b/files/zh-cn/web/javascript/reference/functions/arguments/callee/index.html @@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Functions/arguments/callee

arguments.callee 属性包含当前正在执行的函数。

-

描述

+

描述

callee 是 arguments 对象的一个属性。它可以用于引用该函数的函数体内当前正在执行的函数。这在函数的名称是未知时很有用,例如在没有名称的函数表达式 (也称为“匿名函数”)内。

@@ -82,9 +82,9 @@ sillyFunction();

如果 JavaScript 解释器不能保证所有提供的参数数量在被调用的时候都存在,那么它需要在行内代码插入检查,或者不能内联这个函数。现在在这个特殊例子里一个智能的解释器应该能重排检查而更优,并检查任何将不用到的值。然而在许多的情况里那是不可能的,也因此它不能够内联。 

-

例子

+

例子

-

在匿名递归函数中使用 arguments.callee

+

在匿名递归函数中使用 arguments.callee

递归函数必须能够引用它本身。很典型的,函数通过自己的名字调用自己。然而,匿名函数 (通过 函数表达式 或者 函数构造器 创建) 没有名称。因此如果没有可访问的变量指向该函数,唯一能引用它的方式就是通过 arguments.callee

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 b00da02c08..8b708b2c37 100644 --- a/files/zh-cn/web/javascript/reference/functions/arguments/index.html +++ b/files/zh-cn/web/javascript/reference/functions/arguments/index.html @@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Functions/arguments

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

-

描述

+

描述

Note: If you're writing ES6 compatible code, then rest parameters should be preferred.

@@ -88,7 +88,7 @@ number
var args = Array.from(arguments);
 var args = [...arguments];
-

属性

+

属性

arguments.callee
@@ -109,7 +109,7 @@ var args = [...arguments];

注意: 在严格模式下,arguments对象已与过往不同。arguments[@@iterator]不再与函数的实际形参之间共享,同时caller属性也被移除。

-

例子

+

例子

遍历参数求和

@@ -125,7 +125,7 @@ add() // 0 add(1) // 1 add(1,2,3,4); // 10 -

定义连接字符串的函数

+

定义连接字符串的函数

这个例子定义了一个函数来连接字符串。这个函数唯一正式声明了的参数是一个字符串,该参数指定一个字符作为衔接点来连接字符串。该函数定义如下:

@@ -145,7 +145,7 @@ myConcat("; ", "elephant", "giraffe", "lion", "cheetah"); // returns "sage. basil. oregano. pepper. parsley" myConcat(". ", "sage", "basil", "oregano", "pepper", "parsley"); -

定义创建HTML列表的方法

+

定义创建HTML列表的方法

这个例子定义了一个函数通过一个字符串来创建HTML列表。这个函数唯一正式声明了的参数是一个字符。当该参数为 "u" 时,创建一个无序列表 (项目列表);当该参数为 "o" 时,则创建一个有序列表 (编号列表)。该函数定义如下:

@@ -259,7 +259,7 @@ func(); // undefined

{{Compat("javascript.functions.arguments")}}

-

相关链接

+

相关链接