aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:08 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commitf45e9e070c93ebbd83d488bdd775987a4d75c201 (patch)
treeaacef5edaf768a188cadc46860f5b6aaa74f39ef /files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html
parent8ccfa93045a6c119303566370999f59a0aae3b25 (diff)
downloadtranslated-content-f45e9e070c93ebbd83d488bdd775987a4d75c201.tar.gz
translated-content-f45e9e070c93ebbd83d488bdd775987a4d75c201.tar.bz2
translated-content-f45e9e070c93ebbd83d488bdd775987a4d75c201.zip
fix yari h2m dry run errors
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html')
-rw-r--r--files/zh-tw/web/javascript/reference/global_objects/string/replace/index.html16
1 files changed, 8 insertions, 8 deletions
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
<p><strong><code>replace()</code></strong> 方法會傳回一個新字串,此新字串是透過將原字串與 <code>pattern</code> 比對,以 <code>replacement</code> 取代吻合處而生成。<code>pattern</code> 可以是字串或 {{jsxref("RegExp")}},而 <code>replacement</code> 可以是字串或函式(會在每一次匹配時被呼叫)。</p>
-<div class="note">
-<p>備註:原始的字串會保持不變。</p>
+<div class="notecard note">
+<p><strong>備註:</strong>原始的字串會保持不變。</p>
</div>
<h2 id="語法">語法</h2>
@@ -42,11 +42,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replace
<p>The replacement string can include the following special replacement patterns:</p>
-<table class="fullwidth-table">
+<table>
<tbody>
<tr>
- <td class="header">Pattern</td>
- <td class="header">Inserts</td>
+ <th>Pattern</th>
+ <th>Inserts</th>
</tr>
<tr>
<td><code>$$</code></td>
@@ -77,11 +77,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replace
<p>The arguments to the function are as follows:</p>
-<table class="fullwidth-table">
+<table>
<tbody>
<tr>
- <td class="header">Possible name</td>
- <td class="header">Supplied value</td>
+ <th>Possible name</th>
+ <th>Supplied value</th>
</tr>
<tr>
<td><code>match</code></td>