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/pow/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html') 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 9138f6d635..7e9b8ba09e 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 @@ -9,11 +9,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow

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

-

语法

+

语法

Math.pow(base, exponent) 
-

参数

+

参数

base
@@ -22,13 +22,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow
指数
-

描述

+

描述

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

-

示例

+

示例

-

使用 Math.pow

+

使用 Math.pow

function raisePower(x,y) {
    return Math.pow(x,y)
@@ -67,7 +67,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow
 
 

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

-

相关链接

+

相关链接