From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../web/javascript/reference/global_objects/array/slice/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/slice') diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html index d62b834d40..74703cbe04 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/slice/index.html @@ -57,7 +57,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/slice

如果向两个数组任一中添加了新元素,则另一个不会受到影响。

-

示例

+

示例

返回现有数组的一部分

@@ -108,7 +108,7 @@ The new color of my Honda is purple newCar[0].color = purple -

类数组(Array-like)对象

+

类数组(Array-like)对象

slice 方法可以用来将一个类数组(Array-like)对象/集合转换成一个新数组。你只需将该方法绑定到这个对象上。 一个函数中的  {{jsxref("Functions/arguments", "arguments")}} 就是一个类数组对象的例子。

@@ -242,7 +242,7 @@ var list1 = list(1, 2, 3); // [1, 2, 3]

{{Compat("javascript.builtins.Array.slice")}}

-

相关链接

+

相关链接