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

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

@@ -3,7 +3,7 @@
<div> </div>
<p><code><strong>decodeURI()</strong></code> 函数解码一个由<a href="Reference/Global_Objects/encodeURI" title='encodeURI()  函数通过将特定字符的每个实例替换为一个、两个、三或四转义序列来对统一资源标识符 (URI) 进行编码 (该字符的 UTF-8 编码仅为四转义序列)由两个 "代理" 字符组成)。'><code>encodeURI</code></a> 先前创建的统一资源标识符URI或类似的例程。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code>decodeURI(<em>encodedURI</em>)</code></pre>
<pre><code class="language-javascript"><code>decodeURI(<em>encodedURI</em>)</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>encodedURI</code></dt>
@@ -17,9 +17,9 @@
<p>将已编码 URI 中所有能识别的转义序列转换成原字符,但不能解码那些不会被 <a href="Reference/Global_Objects/encodeURI" title='encodeURI()  函数通过将特定字符的每个实例替换为一个、两个、三或四转义序列来对统一资源标识符 (URI) 进行编码 (该字符的 UTF-8 编码仅为四转义序列)由两个 "代理" 字符组成)。'><code>encodeURI</code></a> 编码的内容(例如 "<code>#</code>")。</p>
<h2 id="示例">示例</h2>
<h3 id="解码一个西里尔字母CyrillicURL">解码一个西里尔字母CyrillicURL</h3>
<pre class="brush: js">decodeURI("https://developer.mozilla.org/ru/docs/JavaScript_%D1%88%D0%B5%D0%BB%D0%BB%D1%8B");
<pre><code class="language-javascript">decodeURI("https://developer.mozilla.org/ru/docs/JavaScript_%D1%88%D0%B5%D0%BB%D0%BB%D1%8B");
// "https://developer.mozilla.org/ru/docs/JavaScript_шеллы"
</pre>
</code></pre>
<h3 id="捕捉异常">捕捉异常</h3>
<pre>try {
var a = decodeURI('%E0%A4%A');
@@ -27,7 +27,7 @@
console.error(e);
}
// URIError: malformed URI sequence</pre>
// URIError: malformed URI sequence</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>