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

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>get()</strong></code> 方法返回  <code>WeakMap</code> 指定的元素。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><em>wm</em>.get(key);</code></pre>
<pre><code class="language-javascript"><code><em>wm</em>.get(key);</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt>key</dt>
@@ -12,12 +12,12 @@
<h3 id="返回与指定键相关联的值如果_WeakMap_对象找不到这个键则返回_undefined。"><span style="font-size: 14px; line-height: 1.5;">返回与指定键相关联的值,如果 </span><code style="font-size: 14px; font-style: normal; font-weight: normal; line-height: 1.5;">WeakMap</code><span style="font-size: 14px; line-height: 1.5;"> 对象找不到这个键则返回 </span><code style="font-size: 14px; font-style: normal; font-weight: normal; line-height: 1.5;">undefined</code><span style="font-size: 14px; line-height: 1.5;"></span></h3>
<h2 id="例子">例子</h2>
<h3 id="使用_get_方法">使用 <code>get </code>方法<code> </code></h3>
<pre class="brush: js">var wm = new WeakMap();
<pre><code class="language-javascript">var wm = new WeakMap();
wm.set(window, "foo");
wm.get(window); // 返回 "foo".
wm.get("baz"); // 返回 undefined.
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>