From a38d09561841bd9a08af2b012fd24f42278d3bb7 Mon Sep 17 00:00:00 2001 From: Andrew <974088545@qq.com> Date: Thu, 3 Feb 2022 10:19:13 +0800 Subject: correct instructions --- .../web/javascript/reference/global_objects/array/splice/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/splice') diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html index 0ce5aba69f..b2bb7374dd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html @@ -31,7 +31,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/splice
deleteCount
{{optional_inline}}deleteCount
大于 start
之后的元素的总数,则从 start
后面的元素都将被删除(含第 start
位)。deleteCount
被省略了,或者它的值大于等于array.length - start
(也就是说,如果它大于或者等于start
之后的所有元素的数量),那么start
之后数组的所有元素都会被删除。deleteCount
被省略了,或者它的值大于等于array.length - start
(也就是说,如果它大于或者等于含start
及之后的所有元素的数量),那么start
及之后所有元素都会被删除。deleteCount
是 0 或者负数,则不移除元素。这种情况下,至少应添加一个新元素。item1, item2, ...
{{optional_inline}}start
位置开始。如果不指定,则 splice()
将只删除数组元素。