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 --- .../javascript/reference/global_objects/math/log2/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html index 78f1c43b93..1811e1b183 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html @@ -7,26 +7,26 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/log2
{{JSRef("Global_Objects", "Math")}}
-

概述

+

概述

Math.log2() 函数返回一个数字以 2 为底的对数.

-

语法

+

语法

Math.log2(x)
-

参数

+

参数

x
任意数字.
-

描述

+

描述

如果传入的参数小于 0, 则返回 NaN.

-

示例

+

示例

Math.log2(2)     // 1
 Math.log2(1024)  // 10
@@ -106,7 +106,7 @@ Math.log2("foo") // NaN
 
 
 
-

相关链接

+

相关链接