aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/reference/global_objects/array/splice
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:08 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit3bb96c83e22a7a6214e79e9b903ee1c7b5657e67 (patch)
tree27e65cf2e0db2cdd34ddb4467323502e4c695ee1 /files/zh-tw/web/javascript/reference/global_objects/array/splice
parentded7faccb46997b20767ef9a3e6d5f5810a52cf8 (diff)
downloadtranslated-content-3bb96c83e22a7a6214e79e9b903ee1c7b5657e67.tar.gz
translated-content-3bb96c83e22a7a6214e79e9b903ee1c7b5657e67.tar.bz2
translated-content-3bb96c83e22a7a6214e79e9b903ee1c7b5657e67.zip
adjust dl/dt/dd tags for zh-TW
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/array/splice')
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/array/splice/index.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/array/splice/index.html b/files/zh-tw/web/javascript/reference/global_objects/array/splice/index.html
index 2cb76617b8..77215cc1e1 100644
--- a/files/zh-tw/web/javascript/reference/global_objects/array/splice/index.html
+++ b/files/zh-tw/web/javascript/reference/global_objects/array/splice/index.html
@@ -26,9 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/splice
<dt><code>start</code></dt>
<dd>陣列中要開始改動的元素索引(起始為 0)。若索引大於陣列長度,則實際開始的索引值會被設為陣列長度。若索引為負,則會從陣列中最後一個元素開始往前改動(起始為 -1)且若其絕對值大於陣列的長度,則會被設為 0。</dd>
<dt><code>deleteCount</code> {{optional_inline}}</dt>
- <dd>一個表示欲刪除的原陣列元素數量的整數。</dd>
- <dd>若省略了 <code>deleteCount</code>,或假如其值大於 <code>array.length - start</code>(也就是 <code>deleteCount</code> 大於 <code>start</code> 算起的剩餘元素數量),則所有從 <code>start</code> 開始到陣列中最後一個元素都會被刪除。</dd>
- <dd>若 <code>deleteCount</code> 為 0 或是負數,則不會有元素被刪除。 因此,你應該給定至少一個欲加入的新元素(見下方說明)。</dd>
+ <dd>一個表示欲刪除的原陣列元素數量的整數。若省略了 <code>deleteCount</code>,或假如其值大於 <code>array.length - start</code>(也就是 <code>deleteCount</code> 大於 <code>start</code> 算起的剩餘元素數量),則所有從 <code>start</code> 開始到陣列中最後一個元素都會被刪除。若 <code>deleteCount</code> 為 0 或是負數,則不會有元素被刪除。 因此,你應該給定至少一個欲加入的新元素(見下方說明)。</dd>
<dt><code>item1, item2, <em>...</em></code> {{optional_inline}}</dt>
<dd>從 <code>start</code> 開始,要加入到陣列的元素。 如果你沒有指定任何元素,則 <code>splice()</code> 只會依照 <code>start</code> 和 <code>deleteCount</code> 刪除陣列的元素。</dd>
</dl>