aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/functions/rest_parameters/index.html
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:07 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commitc40612041809fe289aba58aefa170bbe784aba1f (patch)
tree8ca89b071d04afcf7abd6d9a04d0765a041d9c8a /files/zh-cn/web/javascript/reference/functions/rest_parameters/index.html
parent12a899ab8540bc84f56a0dc6491be80a48499d49 (diff)
downloadtranslated-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/functions/rest_parameters/index.html')
-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>