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

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

@@ -5,22 +5,22 @@
</div></div>
<p><strong><code>input</code> </strong>非标准属性是正则表达式静态属性,含有正则表达式所匹配的字符串。<code>RegExp.$_</code>是这个属性的别名。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><var>RegExp</var>.input
<pre><code class="language-javascript"><var>RegExp</var>.input
RegExp.$_
</pre>
</code></pre>
<h2 id="描述">描述</h2>
<p><code>input</code> 属性是静态的,并不是正则表达式独立对象的属性。反之,你应始终将其使用为 <code>RegExp.input</code> 或者 <code>RegExp.$_。</code></p>
<p>当正则表达式上搜索的字符串发生改变,并且字符串匹配时,<code><strong>input</strong></code> 属性的值会修改。</p>
<h2 id="示例">示例</h2>
<h3 id="使用_input_和__">使用 <code>input</code><code>$_</code></h3>
<pre class="brush: js">var re = /hi/g;
<pre><code class="language-javascript">var re = /hi/g;
re.test('hi there!');
RegExp.input; // "hi there!"
re.test('foo'); // 新测试,不匹配
RegExp.$_; // "hi there!"
re.test('hi world!'); // 新测试,匹配
RegExp.$_; // "hi world!"
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<p>非标准。并不是任何现行规范的一部分。</p>
<h2 id="浏览器兼容性">浏览器兼容性</h2>