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 --- .../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 +++++++------- .../reference/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 ++++++------ .../reference/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 ++++++------ .../reference/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 +++++----- .../reference/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 ++++---- 37 files changed, 212 insertions(+), 212 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html index 397ad9724b..e86e8064c2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/abs/index.html @@ -9,24 +9,24 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/abs

Math.abs(x)=|x|={xifx0-xifx<0{\mathtt{\operatorname{Math.abs}(x)}} = {|x|} = \begin{cases} x & \text{if} \quad x \geq 0 \\ -x & \text{if} \quad x < 0 \end{cases}

-

语法

+

语法

Math.abs(x);
-

参数

+

参数

x
一个数值
-

说明

+

说明

由于 Math.abs()  Math 中的一个静态方法,你应该通过 Math.abs() 调用。(Math 不是构造器)

-

示例

+

示例

-

Math.abs()函数的行为

+

Math.abs()函数的行为

传入一个非数字形式的字符串或者 undefined/empty 变量,将返回 NaN。传入 null 将返回 0。

@@ -115,7 +115,7 @@ Math.abs(); // NaN -

相关链接

+

相关链接