mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-02-28 10:03:04 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user