aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/string/replaceall
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/replaceall')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/replaceall/index.html12
1 files changed, 6 insertions, 6 deletions
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
<pre class="syntaxbox">const newStr = <var>str</var>.replaceAll(<var>regexp</var>|<var>substr</var>, <var>newSubstr</var>|<var>function</var>)</pre>
-<div class="blockIndicator note">
-<p>当使用一个 `regex`时,您必须设置全局(“ g”)标志,<br>
+<div class="note">
+<p><strong>备注:</strong>当使用一个 `regex`时,您必须设置全局(“ g”)标志,<br>
否则,它将引发 <code>TypeError</code>:“必须使用全局 RegExp 调用 replaceAll”。</p>
</div>
@@ -54,8 +54,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replaceAll
<table class="standard-table">
<thead>
<tr>
- <th class="header" scope="col">Pattern</th>
- <th class="header" scope="col">Inserts</th>
+ <th scope="col">Pattern</th>
+ <th scope="col">Inserts</th>
</tr>
</thead>
<tbody>
@@ -93,8 +93,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replaceAll
<table class="standard-table">
<thead>
<tr>
- <th class="header" scope="col">Possible name</th>
- <th class="header" scope="col">Supplied value</th>
+ <th scope="col">Possible name</th>
+ <th scope="col">Supplied value</th>
</tr>
</thead>
<tbody>