aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/of/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/of/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html
index 9013ce9446..8c12486fe2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/of/index.html
@@ -24,11 +24,11 @@ Array(7); // [ , , , , , , ]
Array(1, 2, 3); // [1, 2, 3]
</pre>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Array.of(<var>element0</var>[, <var>element1</var>[, ...[, <var>elementN</var>]]])</code></pre>
-<h3 id="Parameters" name="Parameters">参数</h3>
+<h3 id="Parameters">参数</h3>
<dl>
<dt>element<em>N</em></dt>
@@ -50,7 +50,7 @@ Array.of(1, 2, 3); // [1, 2, 3]
Array.of(undefined); // [undefined]
</pre>
-<h2 id="Compatibility" name="Compatibility">兼容旧环境</h2>
+<h2 id="Compatibility">兼容旧环境</h2>
<p>如果原生不支持的话,在其他代码之前执行以下代码会创建 <code>Array.of()</code> 。</p>