aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html
index a9c984245f..b408aa046f 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/reverse/index.html
@@ -20,23 +20,23 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/reverse
<div></div>
-<h2 id="语法" style="margin-bottom: 20px; line-height: 30px;">语法</h2>
+<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><var> arr</var>.reverse()</code></pre>
-<h3 id="返回值" style="line-height: 24px;">返回值</h3>
+<h3 id="返回值">返回值</h3>
<p>颠倒后的数组。</p>
-<h2 id="描述" style="margin-bottom: 20px; line-height: 30px;">描述</h2>
+<h2 id="描述">描述</h2>
<p><code>reverse</code> 方法颠倒数组中元素的位置,改变了数组,并返回该数组的引用。</p>
<p>reverse方法是特意类化的;此方法可被 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call" title="The call() method calls a function with a given this value and arguments provided individually.">called</a> 或 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply" title="The apply() method calls a function with a given this value, and arguments provided as an array (or an array-like object).">applied</a>于类似数组对象。对象如果不包含反映一系列连续的、基于零的数值属性中的最后一个长度的属性,则该对象可能不会以任何有意义的方式运行。</p>
-<h2 id="示例" style="margin-bottom: 20px; line-height: 30px;">示例</h2>
+<h2 id="示例">示例</h2>
-<h3 id="颠倒数组中的元素" style="line-height: 24px;">颠倒数组中的元素</h3>
+<h3 id="颠倒数组中的元素">颠倒数组中的元素</h3>
<p>下例将会创建一个数组 sourceArray,其包含三个元素,然后颠倒该数组。</p>
@@ -95,7 +95,7 @@ console.log(a); // {0: 3, 1: 2, 2: 1, length: 3}</code></pre>
</tbody>
</table>
-<h2 id="规范" style="margin-bottom: 20px; line-height: 30px;">规范</h2>
+<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>
@@ -122,7 +122,7 @@ console.log(a); // {0: 3, 1: 2, 2: 1, length: 3}</code></pre>
</tbody>
</table>
-<h2 id="浏览器兼容性" style="margin-bottom: 20px; line-height: 30px;">浏览器兼容性</h2>
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
<div>
<div>
@@ -132,7 +132,7 @@ console.log(a); // {0: 3, 1: 2, 2: 1, length: 3}</code></pre>
</div>
</div>
-<h2 id="See_also" name="See_also" style="margin-bottom: 20px; line-height: 30px;">相关链接</h2>
+<h2 id="See_also" name="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Array.prototype.join()")}}</li>