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

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,10 +1,10 @@
<article id="wikiArticle">
<div></div>
<h2 id="信息">信息</h2>
<pre class="syntaxbox">Warning: SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
<pre><code class="language-javascript">Warning: SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
Warning: SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
</pre>
</code></pre>
<h2 id="错误类型">错误类型</h2>
<p><a href="Reference/Global_Objects/SyntaxError" title="SyntaxError 对象代表尝试解析语法上不合法的代码的错误。"><code>SyntaxError</code></a> 的警告。不会终止 JavaScript 的执行。</p>
<h2 id="哪里错了">哪里错了?</h2>
@@ -14,13 +14,13 @@ Warning: SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecat
<h2 id="示例">示例</h2>
<h3 id="废弃的语法">废弃的语法</h3>
<p>使用 "@" 符号的语法已经被废弃了。</p>
<pre class="brush: js example-bad">//@ sourceMappingURL=http://example.com/path/to/your/sourcemap.map
</pre>
<pre><code class="language-js example-bad">//@ sourceMappingURL=http://example.com/path/to/your/sourcemap.map
</code></pre>
<h3 id="标准语法">标准语法</h3>
<p>使用 "#" 符号代替。</p>
<pre class="brush: js example-good">//# sourceMappingURL=http://example.com/path/to/your/sourcemap.map</pre>
<pre><code class="language-js example-good">//# sourceMappingURL=http://example.com/path/to/your/sourcemap.map</code></pre>
<p>或者,您也可以为 JavaScript 文件设置 header以避免添加注释</p>
<pre class="brush: js example-good">X-SourceMap: /path/to/file.js.map</pre>
<pre><code class="language-js example-good">X-SourceMap: /path/to/file.js.map</code></pre>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p></p><div class="blockIndicator warning"><strong><a class="external" href="https://github.com/mdn/browser-compat-data" rel="noopener">We're converting our compatibility data into a machine-readable JSON format</a></strong>.
This compatibility table still uses the old format,