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

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

@@ -2,7 +2,7 @@
<div></div>
<p><strong>RangeError</strong>对象标明一个错误,当一个值不在其所允许的范围或者集合中。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code>new RangeError([<var>message</var>[, <var>fileName</var>[, <var>lineNumber</var>]]])</code></pre>
<pre><code class="language-javascript"><code>new RangeError([<var>message</var>[, <var>fileName</var>[, <var>lineNumber</var>]]])</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>message</code></dt>
@@ -43,7 +43,7 @@
<div><p>Although the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError" title="The RangeError object indicates an error when a value is not in the set or range of allowed values."><code>RangeError</code></a> prototype object does not contain any methods of its own, <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError" title="The RangeError object indicates an error when a value is not in the set or range of allowed values."><code>RangeError</code></a> instances do inherit some methods through the prototype chain.</p></div>
<h2 id="例子">例子</h2>
<h3 id="使用RangeError">使用<code>RangeError</code></h3>
<pre class="brush: js">var check = function(num) {
<pre><code class="language-javascript">var check = function(num) {
if (num &lt; MIN || num &gt; MAX) {
throw new RangeError('Parameter must be between ' + MIN + ' and ' + MAX);
}
@@ -57,7 +57,7 @@ catch (e) {
// 处理越界错误
}
}
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>