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 --- .../javascript/reference/global_objects/string/repeat/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/repeat') diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html index e412b0da5c..45ea5be584 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/repeat/index.html @@ -18,11 +18,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/repeat

repeat() 构造并返回一个新字符串,该字符串包含被连接在一起的指定数量的字符串的副本。

-

语法

+

语法

str.repeat(count)
-

参数

+

参数

count
@@ -86,7 +86,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/repeat } -

示例

+

示例

"abc".repeat(-1)     // RangeError: repeat count must be positive and less than inifinity
 "abc".repeat(0)      // ""
@@ -113,7 +113,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/repeat
  
 
 
-

浏览器兼容性

+

浏览器兼容性

{{Compat("javascript.builtins.String.repeat")}}

-- cgit v1.2.3-54-g00ecf