aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/log2/index.html12
1 files changed, 6 insertions, 6 deletions
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
<div>{{JSRef("Global_Objects", "Math")}}</div>
</div>
-<h2 id="Summary" name="Summary">概述</h2>
+<h2 id="Summary">概述</h2>
<p><code><strong>Math.log2()</strong></code> 函数返回一个数字以 2 为底的对数.</p>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.log2(<em>x</em>)</code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt><code>x</code></dt>
<dd>任意数字.</dd>
</dl>
-<h2 id="Description" name="Description">描述</h2>
+<h2 id="Description">描述</h2>
<p>如果传入的参数小于 0, 则返回 <code>NaN</code>.</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush:js">Math.log2(2) // 1
Math.log2(1024) // 10
@@ -106,7 +106,7 @@ Math.log2("foo") // NaN
</table>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Global_Objects/Math", "Math")}} 对象.</li>