diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/regexp/source')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html index 3bd290c609..191f1e0feb 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/source/index.html @@ -12,18 +12,18 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/source --- <div>{{JSRef("Global_Objects", "RegExp")}}</div> -<h2 id="Summary" name="Summary">概述</h2> +<h2 id="Summary">概述</h2> <p><strong><code>source</code></strong> 属性返回一个值为当前正则表达式对象的模式文本的字符串,该字符串不会包含正则字面量两边的斜杠以及任何的标志字符。</p> -<h2 id="Examples" name="Examples">示例</h2> +<h2 id="Examples">示例</h2> <pre class="brush: js">var regex = /fooBar/ig; console.log(regex.source); // "fooBar",不包含 /.../ 和 "ig"。 </pre> -<h2 id="Specifications" name="Specifications">规范</h2> +<h2 id="Specifications">规范</h2> <table class="standard-table"> <tbody> @@ -50,7 +50,7 @@ console.log(regex.source); // "fooBar",不包含 /.../ 和 "ig"。 </tbody> </table> -<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> +<h2 id="Browser_compatibility">浏览器兼容性</h2> <div>{{CompatibilityTable}}</div> @@ -102,7 +102,7 @@ console.log(regex.source); // "fooBar",不包含 /.../ 和 "ig"。 </table> </div> -<h2 id="See_also" name="See_also">相关链接</h2> +<h2 id="See_also">相关链接</h2> <ul> <li>{{jsxref("RegExp.prototype.flags")}}</li> |