语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -4,7 +4,7 @@
</div></div>
<p><code>已废弃的<strong>compile</strong></code><strong><code>()</code></strong> 方法被用于在脚本执行过程中(重新)编译正则表达式。与<code>RegExp</code>构造函数基本一样。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><var>regexObj</var>.compile(<var>pattern, flags</var>)</code></pre>
<pre><code class="language-javascript"><code><var>regexObj</var>.compile(<var>pattern, flags</var>)</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>pattern</code></dt>
@@ -29,9 +29,9 @@
<h2 id="示例">示例</h2>
<h3 id="使用compile()"><code>使用compile()</code></h3>
<p>以下展示如何用新模式和新标志来重新编译正则表达式。</p>
<pre class="brush: js">var regexObj = new RegExp("foo", "gi");
<pre><code class="language-javascript">var regexObj = new RegExp("foo", "gi");
regexObj.compile("new foo", "g");
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>