From 01b0e12ba27b5069248fd09235e9a7143915ee30 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:02:49 +0800 Subject: remove `notranslate` class in zh-CN --- .../reference/global_objects/array/concat/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/concat') diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html index 4541912a76..b0960c35d0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/concat/index.html @@ -16,7 +16,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/concat

语法

-
var new_array = old_array.concat(value1[, value2[, ...[, valueN]]])
+
var new_array = old_array.concat(value1[, value2[, ...[, valueN]]])

参数

@@ -53,7 +53,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/concat

以下代码将两个数组合并为一个新数组:

-
var alpha = ['a', 'b', 'c'];
+
var alpha = ['a', 'b', 'c'];
 var numeric = [1, 2, 3];
 
 alpha.concat(numeric);
@@ -63,7 +63,7 @@ alpha.concat(numeric);
 
 

以下代码将三个数组合并为一个新数组:

-
var num1 = [1, 2, 3],
+
var num1 = [1, 2, 3],
     num2 = [4, 5, 6],
     num3 = [7, 8, 9];
 
@@ -76,7 +76,7 @@ console.log(nums);
 
 

以下代码将三个值连接到数组:

-
var alpha = ['a', 'b', 'c'];
+
var alpha = ['a', 'b', 'c'];
 
 var alphaNumeric = alpha.concat(1, [2, 3]);
 
@@ -87,7 +87,7 @@ console.log(alphaNumeric);
 
 

以下代码合并数组并保留引用:

-
var num1 = [[1]];
+
var num1 = [[1]];
 var num2 = [2, [3]];
 var num3=[5,[6]];
 
-- 
cgit v1.2.3-54-g00ecf