diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html | 12 |
1 files changed, 6 insertions, 6 deletions
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 <p>{{EmbedInteractiveExample("pages/js/math-pow.html")}}</p> -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre class="syntaxbox"><code>Math.pow(<em>base</em>, <em>exponent</em>) </code></pre> -<h3 id="Parameters" name="Parameters">参数</h3> +<h3 id="Parameters">参数</h3> <dl> <dt><code>base</code></dt> @@ -22,13 +22,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow <dd>指数</dd> </dl> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p>由于 <code>pow</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.pow()</code>,而不是作为你创建的 <code>Math</code> 对象的方法。</p> -<h2 id="Examples" name="Examples">示例</h2> +<h2 id="Examples">示例</h2> -<h3 id="Example_Using_Math.pow" name="Example:_Using_Math.pow">使用 <code>Math.pow</code></h3> +<h3 id="Example_Using_Math.pow">使用 <code>Math.pow</code></h3> <pre class="brush:js">function raisePower(x,y) { return Math.pow(x,y) @@ -67,7 +67,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow <p>{{Compat("javascript.builtins.Math.pow")}}</p> -<h2 id="See_also" name="See_also">相关链接</h2> +<h2 id="See_also">相关链接</h2> <ul> <li>{{jsxref("Math.cbrt()")}}</li> |