mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-02-28 18:11:29 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<h2 id="Summary" name="Summary">概述</h2>
|
||||
<p><code><strong>Math.log2()</strong></code> 函数返回一个数字以 2 为底的对数.</p>
|
||||
<h2 id="Syntax" name="Syntax">语法</h2>
|
||||
<pre class="syntaxbox"><code>Math.log2(<em>x</em>)</code></pre>
|
||||
<pre><code class="language-javascript"><code>Math.log2(<em>x</em>)</code></code></pre>
|
||||
<h3 id="Parameters" name="Parameters">参数</h3>
|
||||
<dl>
|
||||
<dt><code>x</code></dt>
|
||||
@@ -14,14 +14,14 @@
|
||||
<h2 id="Description" name="Description">描述</h2>
|
||||
<p>如果传入的参数小于 0, 则返回 <code>NaN</code>.</p>
|
||||
<h2 id="Examples" name="Examples">示例</h2>
|
||||
<pre class="brush:js">Math.log2(2) // 1
|
||||
<pre><code class="language-js">Math.log2(2) // 1
|
||||
Math.log2(1024) // 10
|
||||
Math.log2(1) // 0
|
||||
Math.log2(0) // -Infinity
|
||||
Math.log2(-2) // NaN
|
||||
Math.log2("1024")// 10
|
||||
Math.log2("foo") // NaN
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user