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

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,13 +1,13 @@
<article id="wikiArticle">
<div></div>
<h2 id="信息">信息</h2>
<pre class="syntaxbox">SyntaxError: expected expression, got "x"
<pre><code class="language-javascript">SyntaxError: expected expression, got "x"
SyntaxError: expected property name, got "x"
SyntaxError: expected target, got "x"
SyntaxError: expected rest argument name, got "x"
SyntaxError: expected closing parenthesis, got "x"
SyntaxError: expected '=&gt;' after argument list, got "x"
</pre>
</code></pre>
<h2 id="错误类型">错误类型</h2>
<p><a href="Reference/Global_Objects/SyntaxError" title="SyntaxError 对象代表尝试解析语法上不合法的代码的错误。"><code>SyntaxError</code></a></p>
<h2 id="哪里出错了">哪里出错了?</h2>
@@ -15,13 +15,13 @@ SyntaxError: expected '=&gt;' after argument list, got "x"
<h2 id="示例">示例</h2>
<h3 id="期望的表达式">期望的表达式</h3>
<p>例如,在调用函数时,不允许使用尾随逗号。 有尾逗号的时候JavaScript 会期望有另一个参数,可以是任何表达式。</p>
<pre class="brush: js example-bad">Math.max(2, 42,);
<pre><code class="language-js example-bad">Math.max(2, 42,);
// SyntaxError: expected expression, got ')'
</pre>
</code></pre>
<p>正确的方法是省略最后一个逗号或添加另一个参数:</p>
<pre class="brush: js example-good">Math.max(2, 42);
<pre><code class="language-js example-good">Math.max(2, 42);
Math.max(2, 42, 13+37);
</pre>
</code></pre>
<h2 id="相关">相关</h2>
<ul>
<li><a href="Reference/Global_Objects/Math/max" title="Math.max() 函数返回一组数中的最大值。"><code>Math.max()</code></a></li>