aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/length/index.html
diff options
context:
space:
mode:
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.html8
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 &lt; 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>