From 8ccfa93045a6c119303566370999f59a0aae3b25 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:13:18 +0800 Subject: adjust dl/dt/dd tags for zh-CN --- .../reference/global_objects/sharedarraybuffer/slice/index.html | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer') diff --git a/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/slice/index.html b/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/slice/index.html index a13b9885f3..59937c30c1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/slice/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/sharedarraybuffer/slice/index.html @@ -22,14 +22,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/slice
begin {{optional_inline}}
-
从零开始的索引,从该索引开始提取。
-
可以使用一个负索引,表示从序列末尾开始的偏移量。 slice(-2)提取序列中的最后两个元素。
-
If begin is undefined, slice begins from index 0.如果begin为undefined,slice则从索引为0处开始。
+
从零开始的索引,从该索引开始提取。可以使用一个负索引,表示从序列末尾开始的偏移量。 slice(-2)提取序列中的最后两个元素。If begin is undefined, slice begins from index 0.如果begin为undefined,slice则从索引为0处开始。
end {{optional_inline}}
-
从零开始的索引,在此索引之前终止提取。 slice 执行提取到索引为end的位置(不包含end)。
-
例如,slice(1,4)提取第二个元素到第四个元素(索引为1、2和3的元素)。
-
可以使用一个负索引,表示从序列末尾开始的偏移量。 slice(2,-1)提取序列中从第三个元素开始,到倒数第二个元素结束的全部元素。
-
如果省略end,则slice一直提取到序列的末尾(sab.byteLength)。
+
从零开始的索引,在此索引之前终止提取。 slice 执行提取到索引为end的位置(不包含end)。例如,slice(1,4)提取第二个元素到第四个元素(索引为1、2和3的元素)。可以使用一个负索引,表示从序列末尾开始的偏移量。 slice(2,-1)提取序列中从第三个元素开始,到倒数第二个元素结束的全部元素。如果省略end,则slice一直提取到序列的末尾(sab.byteLength)。

返回值

-- cgit v1.2.3-54-g00ecf