From f45e9e070c93ebbd83d488bdd775987a4d75c201 Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:08 +0800 Subject: fix yari h2m dry run errors --- .../reference/global_objects/string/replace/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html') diff --git a/files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html b/files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html index 1cc9b1abac..b40013644c 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html @@ -7,8 +7,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replace

replace() 方法會傳回一個新字串,此新字串是透過將原字串與 pattern 比對,以 replacement 取代吻合處而生成。pattern 可以是字串或 {{jsxref("RegExp")}},而 replacement 可以是字串或函式(會在每一次匹配時被呼叫)。

-
-

備註:原始的字串會保持不變。

+
+

備註:原始的字串會保持不變。

語法

@@ -42,11 +42,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replace

The replacement string can include the following special replacement patterns:

- +
- - + + @@ -77,11 +77,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replace

The arguments to the function are as follows:

-
PatternInsertsPatternInserts
$$
+
- - + + -- cgit v1.2.3-54-g00ecf
Possible nameSupplied valuePossible nameSupplied value
match