From 012ee621791b6895e637f96e6523027951768f25 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:03:27 +0800 Subject: remove inline style for zh-CN --- .../reference/global_objects/math/clz32/index.html | 2 +- .../reference/global_objects/math/expm1/index.html | 2 +- .../reference/global_objects/math/log/index.html | 34 +++++++++++----------- .../reference/global_objects/math/log1p/index.html | 4 +-- .../reference/global_objects/math/pi/index.html | 2 +- .../reference/global_objects/math/pow/index.html | 2 +- .../reference/global_objects/math/round/index.html | 32 ++++++++++---------- .../reference/global_objects/math/sqrt2/index.html | 32 ++++++++++---------- .../reference/global_objects/math/trunc/index.html | 2 +- 9 files changed, 56 insertions(+), 56 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html index bd41c06b44..6112c6e45e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/clz32/index.html @@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/clz32
一个数字.
-

描述

+

描述

"clz32" 是 CountLeadingZeroes32 的缩写.

diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html index 3098a43b63..ff321fb664 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html @@ -22,7 +22,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/expm1

描述

-

参数 x 会被自动类型转换成 number 类型.

+

参数 x 会被自动类型转换成 number 类型.

expm1 是 "exponent minus 1" 的缩写.

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 827dea60af..5be95016a8 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 @@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log

如果指定的 number 为负数,则返回值为 NaN

-

由于 log 是 Math 的静态方法,所以应该像这样使用:Math.log(),而不是作为你创建的 Math 对象的方法。

+

由于 log 是 Math 的静态方法,所以应该像这样使用:Math.log(),而不是作为你创建的 Math 对象的方法。

示例

@@ -49,7 +49,7 @@ Math.log(10); // 2.302585092994046

如果你运行 getBaseLog(10, 1000),则会返回2.9999999999999996,非常接近实际答案:3,原因是浮点数精度问题。

-

规范

+

规范

@@ -76,7 +76,7 @@ Math.log(10); // 2.302585092994046
-

浏览器兼容性

+

浏览器兼容性

{{ CompatibilityTable() }}

@@ -84,12 +84,12 @@ Math.log(10); // 2.302585092994046 - - - - - - + + + + + + @@ -107,13 +107,13 @@ Math.log(10); // 2.302585092994046
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafariFeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support
- - - - - - - + + + + + + + @@ -128,7 +128,7 @@ Math.log(10); // 2.302585092994046
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileFeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support
-

相关链接

+

相关链接

diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html index 403d4039a2..e80f580580 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log1p/index.html @@ -28,9 +28,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log1p

函数 y = log(x+1) 的图形是这样的:

-

 log(x+1)

+

 log(x+1)

-

示例

+

示例

Math.log1p(Math.E-1)  // 1
 Math.log1p(0)         // 0
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
index 9c844c1447..fcfc82fbd5 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/pi/index.html
@@ -23,7 +23,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/PI
 
 

下面的函数使用 Math.PI 计算给定半径的圆周长:

-
function calculateCircumference (radius) {
+
function calculateCircumference (radius) {
   return 2 * Math.PI * radius;
 }
 
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
index 3ede0647ac..9138f6d635 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow
 ---
 
{{JSRef}}
-

Math.pow() 函数返回基数(base)的指数(exponent)次幂,即 baseexponent

+

Math.pow() 函数返回基数(base)的指数(exponent)次幂,即 baseexponent

{{EmbedInteractiveExample("pages/js/math-pow.html")}}

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 6b9b7956ba..409b9dbaa1 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 @@ -40,7 +40,7 @@ x = Math.round(-20.5); //-20 x = Math.round(-20.51); //-21
-

小数舍入

+

小数舍入

// 闭包
 (function(){
@@ -126,7 +126,7 @@ Math.ceil10(-59, 1); // -50
 round(1.005, 2);    //1.01
 
-

规范

+

规范

@@ -153,7 +153,7 @@ round(1.005, 2); //1.01
-

浏览器兼容性

+

浏览器兼容性

{{CompatibilityTable}}
@@ -161,12 +161,12 @@ round(1.005, 2); //1.01 - - - - - - + + + + + + @@ -184,12 +184,12 @@ round(1.005, 2); //1.01
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support
- - - - - - + + + + + + @@ -203,7 +203,7 @@ round(1.005, 2); //1.01
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileFeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support
-

相关链接

+

相关链接

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 5171a2f9df..8eb81b8572 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 @@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/SQRT2 } getRoot2(); // 1.4142135623730951
-

规范

+

规范

@@ -41,18 +41,18 @@ getRoot2(); // 1.4142135623730951
-

浏览器兼容性

+

浏览器兼容性

{{ CompatibilityTable() }}

- - - - - - + + + + + + @@ -69,13 +69,13 @@ getRoot2(); // 1.4142135623730951
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafariFeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support
- - - - - - - + + + + + + + @@ -89,7 +89,7 @@ getRoot2(); // 1.4142135623730951
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileFeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support
-

相关链接

+

相关链接

  • The {{jsxref("Global_Objects/Math", "Math")}} object it belongs to.
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html index f260b85c58..485a96e75d 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/trunc/index.html @@ -105,7 +105,7 @@ Math.trunc() // NaN

{{Compat("javascript.builtins.Math.trunc")}}

-

相关链接

+

相关链接

  • {{jsxref("Math.abs()")}}
  • -- cgit v1.2.3-54-g00ecf