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

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: {0} is not a valid code point (Firefox)
<pre><code class="language-javascript">RangeError: {0} is not a valid code point (Firefox)
RangeError: Invalid code point {0} (Chrome)
</pre>
</code></pre>
<h2 id="错误类型">错误类型</h2>
<p><a href="Reference/Global_Objects/RangeError" title="RangeError对象标明一个错误当一个值不在其所允许的范围或者集合中。"><code>RangeError</code></a></p>
<h2 id="什么地方出错了?">什么地方出错了?</h2>
@@ -12,20 +12,20 @@ RangeError: Invalid code point {0} (Chrome)
<p> <a href="Reference/Global_Objects/NaN" title="全局属性 NaN 的值表示不是一个数字Not-A-Number。"><code>NaN</code></a>,负整数(-1非整数3.14或编号大于0x10FFFF (1114111) 的字符,无法使用该方法。</p>
<h2 id="范例">范例</h2>
<h3 id="无效的例子">无效的例子</h3>
<pre class="brush: js example-bad">String.fromCodePoint('_'); // RangeError
<pre><code class="language-js example-bad">String.fromCodePoint('_'); // RangeError
String.fromCodePoint(Infinity); // RangeError
String.fromCodePoint(-1); // RangeError
String.fromCodePoint(3.14); // RangeError
String.fromCodePoint(3e-2); // RangeError
String.fromCodePoint(NaN); // RangeError</pre>
String.fromCodePoint(NaN); // RangeError</code></pre>
<h3 id="有效的例子">有效的例子</h3>
<pre class="brush: js example-good">String.fromCodePoint(42); // "*"
<pre><code class="language-js example-good">String.fromCodePoint(42); // "*"
String.fromCodePoint(65, 90); // "AZ"
String.fromCodePoint(0x404); // "\u0404"
String.fromCodePoint(0x2F804); // "\uD87E\uDC04"
String.fromCodePoint(194564); // "\uD87E\uDC04"
String.fromCodePoint(0x1D306, 0x61, 0x1D307) // "\uD834\uDF06a\uD834\uDF07"
</pre>
</code></pre>
<h2 id="相关链接">相关链接</h2>
<ul>
<li><a href="Reference/Global_Objects/String/fromCodePoint" title="String.fromCodePoint() 静态方法返回使用指定的代码点序列创建的字符串。"><code>String.fromCodePoint()</code></a></li>