diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/concat')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/string/concat/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
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 <p><strong><code>concat()</code></strong> 方法将一个或多个字符串与原字符串连接合并,形成一个新的字符串并返回。</p> -<h2 id="Syntax" name="Syntax">语法</h2> +<h2 id="Syntax">语法</h2> <pre><code><var>str</var>.concat(<var>str2</var>, [, ...<var>strN</var>])</code></pre> -<h3 id="Parameters" name="Parameters">参数</h3> +<h3 id="Parameters">参数</h3> <dl> <dt><code><var>str2</var> [, ...<var>strN</var>]</code></dt> @@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/concat <p>一个新的字符串,包含参数所提供的连接字符串。</p> -<h2 id="Description" name="Description">描述</h2> +<h2 id="Description">描述</h2> <p><code>concat</code> 方法将一个或多个字符串与原字符串连接合并,形成一个新的字符串并返回。 <code>concat</code> 方法并不影响原字符串。</p> @@ -37,9 +37,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/concat <p>强烈建议使用<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Assignment_Operators">赋值操作符</a>(<code>+</code>, <code>+=</code>)代替 <code>concat</code> 方法。</p> -<h2 id="Examples" name="Examples">示例</h2> +<h2 id="Examples">示例</h2> -<h3 id="Examples" name="Examples">使用 <code>concat</code></h3> +<h3 id="Examples">使用 <code>concat</code></h3> <p>下面的例子演示如何将多个字符串与原字符串合并为一个新字符串</p> |