aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/keys/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/keys/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/keys/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/keys/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/keys/index.html
index 6da9228ed2..b8e10fdada 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/keys/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/keys/index.html
@@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/keys
<div>{{EmbedInteractiveExample("pages/js/array-keys.html")}}</div>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code><var>arr</var>.keys()</code>
</pre>
@@ -25,7 +25,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/keys
<p>一个新的 {{jsxref("Array")}} 迭代器对象。</p>
-<h2 id="Examples" name="Examples">示例</h2>
+<h2 id="Examples">示例</h2>
<h3 id="索引迭代器会包含那些没有对应元素的索引">索引迭代器会包含那些没有对应元素的索引</h3>
@@ -36,7 +36,7 @@ console.log(sparseKeys); // ['0', '2']
console.log(denseKeys); // [0, 1, 2]
</pre>
-<h2 id="Specifications" name="Specifications">规范</h2>
+<h2 id="Specifications">规范</h2>
<table class="standard-table">
<tbody>
@@ -58,7 +58,7 @@ console.log(denseKeys); // [0, 1, 2]
</tbody>
</table>
-<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2>
+<h2 id="Browser_compatibility">浏览器兼容性</h2>
<div>
<div>
@@ -68,7 +68,7 @@ console.log(denseKeys); // [0, 1, 2]
</div>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Array.prototype.values()")}}</li>