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/floor/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/floor') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html index 84f4f3b8b6..3f9deb45c0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/floor/index.html @@ -15,11 +15,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/floor

Note:  可以理解 Math.floor()为向下取整

-

语法

+

语法

Math.floor(x) 
-

参数

+

参数

x
@@ -31,13 +31,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/floor
-

描述

+

描述

由于 floorMath 的一个静态方法,你总是应该像这样使用它 Math.floor(),而不是作为你创建的一个Math对象的一种方法(Math不是一个构造函数)。

-

示例

+

示例

-

例子:使用 Math.floor

+

例子:使用 Math.floor

Math.floor( 45.95);
 // 45
@@ -52,7 +52,7 @@ Math.floor(-45.95);
 
 
-

例子:十进制调整

+

例子:十进制调整

// Closure
 (function(){
@@ -210,7 +210,7 @@ Math.ceil10(-59, 1); // -50
 
 
 
-

相关链接

+

相关链接