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

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

@@ -2,7 +2,7 @@
<div></div>
<p><code><strong>has()</strong></code> 方法根据 <code>WeakSet</code> 是否存在相应对象返回布尔值。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><em>ws</em>.has(value);</code></pre>
<pre><code class="language-javascript"><code><em>ws</em>.has(value);</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt>value</dt>
@@ -15,13 +15,13 @@
</dl>
<h2 id="示例">示例</h2>
<h3 id="使用_has_方法">使用 <code>has</code> 方法</h3>
<pre class="brush: js">var ws = new WeakSet();
<pre><code class="language-javascript">var ws = new WeakSet();
var obj = {};
ws.add(window);
mySet.has(window); // 返回 true
mySet.has(obj); // 返回 false
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>