aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/indexof
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/global_objects/array/indexof
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/global_objects/array/indexof')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html
index c470a8b265..a4ef7ead3b 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/indexof/index.html
@@ -20,7 +20,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/indexOf
<p>注意:对于String方法,请参阅 {{jsxref("String.prototype.indexOf()")}}。</p>
</div>
-<h2 id="Syntax" name="Syntax">语法</h2>
+<h2 id="Syntax">语法</h2>
<pre><var>arr</var>.indexOf(<var>searchElement</var>[, <var>fromIndex</var>])</pre>
@@ -189,7 +189,7 @@ if (!Array.prototype.indexOf) {
<p>{{Compat("javascript.builtins.Array.indexOf")}}</p>
</div>
-<h2 id="See_also" name="See_also">相关链接</h2>
+<h2 id="See_also">相关链接</h2>
<ul>
<li>{{jsxref("Array.prototype.lastIndexOf()")}}</li>