aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/array/copywithin/index.html
diff options
context:
space:
mode:
authorIrvin <irvinfly@gmail.com>2022-02-16 02:13:18 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit8ccfa93045a6c119303566370999f59a0aae3b25 (patch)
tree972a4f66cb40a7c722bc20490b0f9b6ceb574e77 /files/zh-cn/web/javascript/reference/global_objects/array/copywithin/index.html
parent3bb96c83e22a7a6214e79e9b903ee1c7b5657e67 (diff)
downloadtranslated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.gz
translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.bz2
translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.zip
adjust dl/dt/dd tags for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/copywithin/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/array/copywithin/index.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/copywithin/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/copywithin/index.html
index 63436145d7..85af69f912 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/array/copywithin/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/array/copywithin/index.html
@@ -27,14 +27,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/copyWithin
<dl>
<dt><code>target</code></dt>
- <dd>0 为基底的索引,复制序列到该位置。如果是负数,<code>target</code> 将从末尾开始计算。</dd>
- <dd>如果 <code>target</code> 大于等于 <code>arr.length</code>,将会不发生拷贝。如果 <code>target</code> 在 <code>start</code> 之后,复制的序列将被修改以符合 <code>arr.length</code>。</dd>
+ <dd>0 为基底的索引,复制序列到该位置。如果是负数,<code>target</code> 将从末尾开始计算。如果 <code>target</code> 大于等于 <code>arr.length</code>,将会不发生拷贝。如果 <code>target</code> 在 <code>start</code> 之后,复制的序列将被修改以符合 <code>arr.length</code>。</dd>
<dt><code>start</code></dt>
- <dd>0 为基底的索引,开始复制元素的起始位置。如果是负数,<code>start</code> 将从末尾开始计算。</dd>
- <dd>如果 <code>start</code> 被忽略,<code>copyWithin</code> 将会从0开始复制。</dd>
+ <dd>0 为基底的索引,开始复制元素的起始位置。如果是负数,<code>start</code> 将从末尾开始计算。如果 <code>start</code> 被忽略,<code>copyWithin</code> 将会从0开始复制。</dd>
<dt><code>end</code></dt>
- <dd>0 为基底的索引,开始复制元素的结束位置。<code>copyWithin</code> 将会拷贝到该位置,但不包括 <code>end</code> 这个位置的元素。如果是负数, <code>end</code> 将从末尾开始计算。</dd>
- <dd>如果 <code>end</code> 被忽略,<code>copyWithin</code> 方法将会一直复制至数组结尾(默认为 <code>arr.length</code>)。</dd>
+ <dd>0 为基底的索引,开始复制元素的结束位置。<code>copyWithin</code> 将会拷贝到该位置,但不包括 <code>end</code> 这个位置的元素。如果是负数, <code>end</code> 将从末尾开始计算。如果 <code>end</code> 被忽略,<code>copyWithin</code> 方法将会一直复制至数组结尾(默认为 <code>arr.length</code>)。</dd>
</dl>
<h3 id="返回值">返回值</h3>