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

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>URIError 对象用来表示以一种错误的方式使用全局URI处理函数而产生的错误。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code>new URIError([<var>message</var>[, <var>fileName</var>[, <var>lineNumber</var>]]])</code></pre>
<pre><code class="language-javascript"><code>new URIError([<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>虽然 <a href="Reference/Global_Objects/URIError" title="URIError 对象用来表示以一种错误的方式使用全局URI处理函数而产生的错误。"><code>URIError</code></a> 的原型对象自身不包含任何方法,但是 <a href="Reference/Global_Objects/URIError" title="URIError 对象用来表示以一种错误的方式使用全局URI处理函数而产生的错误。"><code>URIError</code></a> 的实例通过原型链(prototype chain)继承了一些方法。</p></div>
<h2 id="示例">示例</h2>
<h3 id="捕获一个_URIError_实例">捕获一个 <code>URIError 实例</code></h3>
<pre class="brush: js">try {
<pre><code class="language-javascript">try {
decodeURIComponent('%');
} catch (e) {
console.log(e instanceof URIError); // true
@@ -54,9 +54,9 @@
console.log(e.columnNumber); // 2
console.log(e.stack); // "@Scratchpad/2:2:3\n"
}
</pre>
</code></pre>
<h3 id="创建一个_URIError_实例">创建一个 <code>URIError 实例</code></h3>
<pre class="brush: js">try {
<pre><code class="language-javascript">try {
throw new URIError('Hello', 'someFile.js', 10);
} catch (e) {
console.log(e instanceof URIError); // true
@@ -67,7 +67,7 @@
console.log(e.columnNumber); // 0
console.log(e.stack); // "@Scratchpad/2:2:9\n"
}
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>