From d44f5032d0f53256b2d5aef505d6b593fd3cd158 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:14:18 +0800 Subject: fix yari h2m dry run errors (zh-CN) --- .../reference/global_objects/string/replaceall/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/replaceall') diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html index c9d892e3f7..726bfe2530 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html @@ -21,8 +21,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replaceAll
const newStr = str.replaceAll(regexp|substr, newSubstr|function)
-
-

当使用一个 `regex`时,您必须设置全局(“ g”)标志,
+

+

备注:当使用一个 `regex`时,您必须设置全局(“ g”)标志,
否则,它将引发 TypeError:“必须使用全局 RegExp 调用 replaceAll”。

@@ -54,8 +54,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replaceAll - - + + @@ -93,8 +93,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replaceAll
PatternInsertsPatternInserts
- - + + -- cgit v1.2.3-54-g00ecf
Possible nameSupplied valuePossible nameSupplied value