diff options
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/array/isarray/index.html')
-rw-r--r-- | files/zh-tw/web/javascript/reference/global_objects/array/isarray/index.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/array/isarray/index.html b/files/zh-tw/web/javascript/reference/global_objects/array/isarray/index.html index f610cd1f54..771c17454d 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/array/isarray/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/array/isarray/index.html @@ -22,11 +22,11 @@ Array.isArray('foobar'); // false Array.isArray(undefined); // false </pre> -<h2 id="Syntax" name="Syntax">語法</h2> +<h2 id="Syntax">語法</h2> <pre class="syntaxbox">Array.isArray(<var>obj</var>)</pre> -<h3 id="Parameters" name="Parameters">參數</h3> +<h3 id="Parameters">參數</h3> <dl> <dt><code>obj</code></dt> @@ -37,13 +37,13 @@ Array.isArray(undefined); // false <p>若物件為 {{jsxref("Array")}} 回傳 <code>true</code>;否則回傳 <code>false</code>。</p> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p>檢查傳入的物件是否為陣列({{jsxref("Array")}}),如果是便回傳 <code>true</code>,否則回傳 <code>false</code>。</p> <p>更多細節請參考 <a href="http://web.mit.edu/jwalden/www/isArray.html">“Determining with absolute accuracy whether or not a JavaScript object is an array”</a>。</p> -<h2 id="Examples" name="Examples">範例</h2> +<h2 id="Examples">範例</h2> <pre class="brush: js">// 下方都回傳 true Array.isArray([]); @@ -92,7 +92,7 @@ arr instanceof Array; // false } </pre> -<h2 id="Specifications" name="Specifications">規範</h2> +<h2 id="Specifications">規範</h2> <table class="standard-table"> <tbody> @@ -119,7 +119,7 @@ arr instanceof Array; // false </tbody> </table> -<h2 id="Browser_compatibility" name="Browser_compatibility">瀏覽器相容性</h2> +<h2 id="Browser_compatibility">瀏覽器相容性</h2> <div> @@ -127,7 +127,7 @@ arr instanceof Array; // false <p>{{Compat("javascript.builtins.Array.isArray")}}</p> </div> -<h2 id="See_also" name="See_also">參見</h2> +<h2 id="See_also">參見</h2> <ul> <li>{{jsxref("Array")}}</li> |