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 --- .../reference/global_objects/array/join/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/join') diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/join/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/join/index.html index c40b87ebed..b4c06b6acb 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/join/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/join/index.html @@ -14,11 +14,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/join
{{EmbedInteractiveExample("pages/js/array-join.html")}}
-

语法

+

语法

arr.join([separator])
-

参数

+

参数

separator {{optional_inline}}
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/join
一个所有数组元素连接的字符串。如果 arr.length 为0,则返回空字符串。
-

描述

+

描述

所有的数组元素被转换成字符串,再用一个分隔符将这些字符串连接起来。

@@ -37,9 +37,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/join

如果一个元素为 undefined 或 null,它会被转换为空字符串。

-

示例

+

示例

-

使用四种不同的分隔符连接数组元素

+

使用四种不同的分隔符连接数组元素

下例首先创建了一个数组 a,包含有三个元素,然后用四种不同的分隔符连接所有数组元素。首先是默认的分隔符逗号,然后是一个逗号加空格,接下来是一个加号前后加空格,最后是一个空字符串。

@@ -60,7 +60,7 @@ var myVar4 = a.join(''); // myVar4的值变为"WindRainFire" } f(1, 'a', true); -

规范

+

规范

@@ -92,7 +92,7 @@ f(1, 'a', true);
-

浏览器兼容性

+

浏览器兼容性

@@ -102,7 +102,7 @@ f(1, 'a', true);
-

相关链接

+

相关链接