diff options
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.html | 4 |
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> |