语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -1,9 +1,9 @@
<article id="wikiArticle">
<div></div>
<h2 id="消息">消息</h2>
<pre class="syntaxbox">RangeError: radix must be an integer at least 2 and no greater than 36 (Firefox)
<pre><code class="language-javascript">RangeError: radix must be an integer at least 2 and no greater than 36 (Firefox)
RangeError: toString() radix argument must be between 2 and 36 (Chrome)
</pre>
</code></pre>
<h2 id="错误类型">错误类型</h2>
<p><a href="Reference/Global_Objects/RangeError" title="RangeError对象标明一个错误当一个值不在其所允许的范围或者集合中。"><code>RangeError</code></a></p>
<h2 id="发生了什么错误?">发生了什么错误?</h2>
@@ -18,19 +18,19 @@ RangeError: toString() radix argument must be between 2 and 36 (Chrome)
</ul>
<h2 id="示例">示例</h2>
<h3 id="错误示例">错误示例</h3>
<pre class="brush: js example-bad">(42).toString(0);
<pre><code class="language-js example-bad">(42).toString(0);
(42).toString(1);
(42).toString(37);
(42).toString(150);
// You cannot use a string like this for formatting:
(12071989).toString("MM-dd-yyyy");
</pre>
</code></pre>
<h3 id="正确示例">正确示例</h3>
<pre class="brush: js example-good">(42).toString(2); // "101010" (binary)
<pre><code class="language-js example-good">(42).toString(2); // "101010" (binary)
(13).toString(8); // "15" (octal)
(0x42).toString(10); // "66" (decimal)
(100000).toString(16) // "186a0" (hexadecimal)
</pre>
</code></pre>
<h2 id="参考">参考</h2>
<ul>
<li><a href="Reference/Global_Objects/Number/toString" title="toString() 方法返回指定 Number 对象的字符串表示形式。"><code>Number.prototype.toString()</code></a></li>