diff options
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/array/reverse/index.html')
-rw-r--r-- | files/zh-tw/web/javascript/reference/global_objects/array/reverse/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/array/reverse/index.html b/files/zh-tw/web/javascript/reference/global_objects/array/reverse/index.html index d3104c28be..bf08c27d63 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/array/reverse/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/array/reverse/index.html @@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/reverse -<h2 id="Syntax" name="Syntax">語法</h2> +<h2 id="Syntax">語法</h2> <pre class="syntaxbox"><var>a</var>.reverse()</pre> @@ -24,13 +24,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/reverse <p>反轉後的陣列。</p> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p><code>reverse</code> 方法將原地(in place)變換(transposes)呼叫此方法的陣列物件之元素至其顛倒的位置,改變原陣列後,並回傳此陣列之參考位址(reference)。</p> -<h2 id="Examples" name="Examples">範例</h2> +<h2 id="Examples">範例</h2> -<h3 id="Example:_Reversing_the_elements_in_an_array" name="Example:_Reversing_the_elements_in_an_array">反轉陣列中之元素</h3> +<h3 id="Example:_Reversing_the_elements_in_an_array">反轉陣列中之元素</h3> <p>下列範例建立了一個包含三個元素的陣列 <code>a</code>,接著反轉此陣列。呼叫 <code>reverse()</code> 會回傳一個反轉後的原陣列 <code>a</code> 之參考。</p> @@ -41,7 +41,7 @@ console.log(a); // ['three', 'two', 'one'] console.log(reversed); // ['three', 'two', 'one'] </pre> -<h2 id="Specifications" name="Specifications">規範</h2> +<h2 id="Specifications">規範</h2> <table class="standard-table"> <tbody> |