diff options
author | Andrew <974088545@qq.com> | 2022-02-03 10:19:13 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 00:16:08 +0800 |
commit | a38d09561841bd9a08af2b012fd24f42278d3bb7 (patch) | |
tree | 40bb49ff3739e53a91bd5f1511865451e0c89d58 /files/zh-cn/web/javascript/reference | |
parent | d64f30d6c90c67c57a02ad3cb4cc8a0098551c11 (diff) | |
download | translated-content-a38d09561841bd9a08af2b012fd24f42278d3bb7.tar.gz translated-content-a38d09561841bd9a08af2b012fd24f42278d3bb7.tar.bz2 translated-content-a38d09561841bd9a08af2b012fd24f42278d3bb7.zip |
correct instructions
Diffstat (limited to 'files/zh-cn/web/javascript/reference')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/array/splice/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 <dt><code>deleteCount</code> {{optional_inline}}</dt> <dd>整数,表示要移除的数组元素的个数。</dd> <dd>如果 <code>deleteCount</code> 大于 <code>start</code> 之后的元素的总数,则从 <code>start</code> 后面的元素都将被删除(含第 <code>start</code> 位)。</dd> - <dd>如果 <code>deleteCount</code> 被省略了,或者它的值大于等于<code>array.length - start</code>(也就是说,如果它大于或者等于<code>start</code>之后的所有元素的数量),那么<code>start</code>之后数组的所有元素都会被删除。</dd> + <dd>如果 <code>deleteCount</code> 被省略了,或者它的值大于等于<code>array.length - start</code>(也就是说,如果它大于或者等于含<code>start</code>及之后的所有元素的数量),那么<code>start</code>及之后所有元素都会被删除。</dd> <dd>如果 <code>deleteCount</code> 是 0 或者负数,则不移除元素。这种情况下,至少应添加一个新元素。</dd> <dt><code>item1, item2, <em>...</em></code> {{optional_inline}}</dt> <dd>要添加进数组的元素,从<code><var>start</var></code> 位置开始。如果不指定,则 <code>splice()</code> 将只删除数组元素。</dd> |