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

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> 方法根据WeakMap对象的元素中是否存在key键返回一个boolean值。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><em>wm</em>.has(key);</code></pre>
<pre><code class="language-javascript"><code><em>wm</em>.has(key);</code></code></pre>
<h3 id="Parameters">Parameters</h3>
<dl>
<dt>key</dt>
@@ -15,12 +15,12 @@
</dl>
<h2 id="例子">例子</h2>
<h3 id="使用_has方法">使用 <code>has方法</code></h3>
<pre class="brush: js">var wm = new WeakMap();
<pre><code class="language-javascript">var wm = new WeakMap();
wm.set(window, "foo");
wm.has(window); // returns true
wm.has("baz"); // returns false
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>