aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/functions/rest_parameters
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/functions/rest_parameters')
-rw-r--r--files/zh-cn/web/javascript/reference/functions/rest_parameters/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/functions/rest_parameters/index.html b/files/zh-cn/web/javascript/reference/functions/rest_parameters/index.html
index 406552c11c..cf59dc41c9 100644
--- a/files/zh-cn/web/javascript/reference/functions/rest_parameters/index.html
+++ b/files/zh-cn/web/javascript/reference/functions/rest_parameters/index.html
@@ -77,7 +77,7 @@ f(1) // NaN (b and c are undefined)
f(1, 2, 3) // 6
f(1, 2, 3, 4) // 6 (the fourth parameter is not destructured)</pre>
-<h2 id="Example" name="Example">示例</h2>
+<h2 id="Example">示例</h2>
<p>因为<code>theArgs</code>是个数组,所以你可以使用<code>length</code>属性得到剩余参数的个数:</p>
@@ -127,7 +127,7 @@ alert(sortArguments(5,3,7,1)); // 抛出TypeError异常:arguments.sort is not a
}
console.log(sortArguments(5, 3, 7, 1)); // shows 1, 3, 5, 7</pre>
-<h2 id="Specifications" name="Specifications">规范</h2>
+<h2 id="Specifications">规范</h2>
<table class="standard-table">
<tbody>
@@ -153,7 +153,7 @@ console.log(sortArguments(5, 3, 7, 1)); // shows 1, 3, 5, 7</pre>
<p>{{Compat("javascript.functions.rest_parameters")}}</p>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator" title="spread operator">Spread operator</a> (also ‘<code>...</code>’)</li>