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

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 @@
<p><code><strong>reverse()</strong></code> 方法将数组中元素的位置颠倒,并返回该数组。该方法会改变原数组。</p>
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/array-reverse.html" width="100%"></iframe></div>
<h2 id="语法" style="margin-bottom: 20px; line-height: 30px;">语法</h2>
<pre class="syntaxbox"><code><var> arr</var>.reverse()</code></pre>
<pre><code class="language-javascript"><code><var> arr</var>.reverse()</code></code></pre>
<h3 id="参数" style="line-height: 24px;">参数</h3>
<p></p>
<h2 id="描述" style="margin-bottom: 20px; line-height: 30px;">描述</h2>
@@ -11,12 +11,12 @@
<h2 id="示例" style="margin-bottom: 20px; line-height: 30px;">示例</h2>
<h3 id="例子:颠倒数组中的元素" style="line-height: 24px;">例子:颠倒数组中的元素</h3>
<p>下例将会创建一个数组 sourceArray其包含三个元素然后颠倒该数组。</p>
<pre class="brush: js">var sourceArray = ['one', 'two', 'three'];
<pre><code class="language-javascript">var sourceArray = ['one', 'two', 'three'];
var reverseArray = sourceArray.reverse();
console.log(sourceArray ) // ['three', 'two', 'one']
console.log(sourceArray === reverseArray); // true
</pre>
</code></pre>
<h2 id="规范" style="margin-bottom: 20px; line-height: 30px;">规范</h2>
<table class="standard-table">
<tbody>