mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-20 10:25:54 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div></div>
|
||||
<p>方法<code><strong>has()</strong></code> 返回一个bool值,用来表明map 中是否存在指定元素.</p>
|
||||
<h2 id="语法">语法</h2>
|
||||
<pre class="syntaxbox"><code><em>myMap</em>.has(key);</code></pre>
|
||||
<pre><code class="language-javascript"><code><em>myMap</em>.has(key);</code></code></pre>
|
||||
<h3 id="参数">参数</h3>
|
||||
<dl>
|
||||
<dt>key</dt>
|
||||
@@ -15,12 +15,12 @@
|
||||
</dl>
|
||||
<h2 id="案例">案例</h2>
|
||||
<h3 id="使用has方法">使用has方法</h3>
|
||||
<pre class="brush: js">var myMap = new Map();
|
||||
<pre><code class="language-javascript">var myMap = new Map();
|
||||
myMap.set("bar", "foo");
|
||||
|
||||
myMap.has("bar"); // returns true
|
||||
myMap.has("baz"); // returns false
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user