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/string/concat/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/concat') diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/concat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/concat/index.html index 1f2e37ceb4..09efff146b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/concat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/concat/index.html @@ -12,11 +12,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/concat

concat() 方法将一个或多个字符串与原字符串连接合并,形成一个新的字符串并返回。

-

语法

+

语法

str.concat(str2, [, ...strN])
-

参数

+

参数

str2 [, ...strN]
@@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/concat

一个新的字符串,包含参数所提供的连接字符串。

-

描述

+

描述

concat 方法将一个或多个字符串与原字符串连接合并,形成一个新的字符串并返回。 concat 方法并不影响原字符串。

@@ -37,9 +37,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/concat

强烈建议使用赋值操作符+, +=)代替 concat 方法。

-

示例

+

示例

-

使用 concat

+

使用 concat

下面的例子演示如何将多个字符串与原字符串合并为一个新字符串

-- cgit v1.2.3-54-g00ecf