diff options
author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:13:18 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 8ccfa93045a6c119303566370999f59a0aae3b25 (patch) | |
tree | 972a4f66cb40a7c722bc20490b0f9b6ceb574e77 /files/zh-cn/web/javascript/reference/global_objects/string/replace | |
parent | 3bb96c83e22a7a6214e79e9b903ee1c7b5657e67 (diff) | |
download | translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.gz translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.bz2 translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.zip |
adjust dl/dt/dd tags for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/replace')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html index 5e75b81d05..3bc425e928 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/replace/index.html @@ -28,19 +28,10 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/replace <dl> <dt><code>regexp </code>(pattern)</dt> <dd>一个{{jsxref("RegExp")}} 对象或者其字面量。该正则所匹配的内容会被第二个参数的返回值替换掉。</dd> -</dl> - -<dl> <dt><code>substr </code>(pattern)</dt> <dd>一个将被 <code>newSubStr</code> 替换的 {{jsxref("String","字符串")}}。其被视为一整个字符串,而不是一个正则表达式。仅第一个匹配项会被替换。</dd> -</dl> - -<dl> <dt><code>newSubStr</code> (replacement)</dt> <dd>用于替换掉第一个参数在原字符串中的匹配部分的{{jsxref("String", "字符串")}}。该字符串中可以内插一些特殊的变量名。参考下面的<a href="#使用字符串作为参数">使用字符串作为参数</a>。</dd> -</dl> - -<dl> <dt><code>function</code> (replacement)</dt> <dd>一个用来创建新子字符串的函数,该函数的返回值将替换掉第一个参数匹配到的结果。参考下面的<a href="#指定一个函数作为参数">指定一个函数作为参数</a>。</dd> </dl> |