From a5fcfafb665e96cae5d04dfba927db8dcdfd7f14 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Sun, 13 Dec 2020 17:16:08 -0500 Subject: 2020-12-13 --- .../zh-cn/web/javascript/guide/expressions_and_operators/index.html | 2 +- files/zh-cn/web/javascript/guide/numbers_and_dates/index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/javascript/guide') diff --git a/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html b/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html index 256961d4e6..62d4b97ab5 100644 --- a/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html +++ b/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html @@ -603,7 +603,7 @@ delete property; // legal only within a with statement

objectName是一个对象名,property 是一个已经存在的属性,index是数组中的一个已经存在的键值的索引值。

-

第四行的形式只在with声明的状态下是合法的, 从对象中删除一个属性。

+

第三行的形式只在with声明的状态下是合法的, 从对象中删除一个属性。

你能使用 delete 删除各种各样的隐式声明, 但是被var声明的除外。

diff --git a/files/zh-cn/web/javascript/guide/numbers_and_dates/index.html b/files/zh-cn/web/javascript/guide/numbers_and_dates/index.html index 392c659766..6376d14908 100644 --- a/files/zh-cn/web/javascript/guide/numbers_and_dates/index.html +++ b/files/zh-cn/web/javascript/guide/numbers_and_dates/index.html @@ -246,7 +246,7 @@ var notANum = Number.NaN; {{jsxref("Math.sinh", "sinh()")}}, {{jsxref("Math.cosh", "cosh()")}}, {{jsxref("Math.tanh", "tanh()")}} - 双曲三角函数; 返回值为弧度. + 双曲三角函数; 参数为弧度. {{jsxref("Math.asinh", "asinh()")}}, {{jsxref("Math.acosh", "acosh()")}}, {{jsxref("Math.atanh", "atanh()")}} @@ -260,7 +260,7 @@ var notANum = Number.NaN; {{jsxref("Math.floor", "floor()")}}, {{jsxref("Math.ceil", "ceil()")}} - 返回最大/最小整数小于/大于或等于参数 + 返回小于等于参数的最大整数;返回大于等于参数的最小整数 {{jsxref("Math.min", "min()")}}, {{jsxref("Math.max", "max()")}} @@ -279,7 +279,7 @@ var notANum = Number.NaN; {{jsxref("Math.sqrt", "sqrt()")}}, {{jsxref("Math.cbrt", "cbrt()")}}, {{jsxref("Math.hypot", "hypot()")}} -

平方根,立方根,平方参数的和的平方根 

+

平方根,立方根,所有参数平方和的平方根 

两个参数平方和的平方根

-- cgit v1.2.3-54-g00ecf