diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | c40612041809fe289aba58aefa170bbe784aba1f (patch) | |
tree | 8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/global_objects/array/length/index.html | |
parent | 12a899ab8540bc84f56a0dc6491be80a48499d49 (diff) | |
download | translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.gz translated-content-c40612041809fe289aba58aefa170bbe784aba1f.tar.bz2 translated-content-c40612041809fe289aba58aefa170bbe784aba1f.zip |
remove name attribute for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/length/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/array/length/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html index de5862921d..dfab0b020f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html @@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/length <div>{{EmbedInteractiveExample("pages/js/array-length.html")}}</div> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p><code>length</code> 属性的值是一个 0 到 2<sup>32</sup>-1 的整数。</p> @@ -76,9 +76,9 @@ function printEntries(arr) { <li><code>Enumerable</code> :如果设置为 <code>true</code> ,属性可以通过迭代器<a href="zh-CN/docs/Web/JavaScript/Reference/Statements/for">for</a>或<a href="/zh-CN/docs/Web/JavaScript/Reference/Statements/for...in">for...in</a>进行迭代。</li> </ul> -<h2 id="Examples" name="Examples">示例 </h2> +<h2 id="Examples">示例 </h2> -<h3 id="Example:_Iterating_over_an_array" name="Example:_Iterating_over_an_array">遍历数组</h3> +<h3 id="Example:_Iterating_over_an_array">遍历数组</h3> <p>下面的例子中,通过数组下标遍历数组元素,并把每个元素的值修改为原值的2倍。</p> @@ -89,7 +89,7 @@ for (var i = 0; i < length; i++) { } // 遍历后的结果 [2, 4, 6, 8, 10]</pre> -<h3 id="Example:_Shortening_an_array" name="Example:_Shortening_an_array">截断数组</h3> +<h3 id="Example:_Shortening_an_array">截断数组</h3> <p>下面的例子中,如果数组长度大于 3,则把该数组的长度截断为 3 。</p> |