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

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>add()</strong></code> 方法用来向一个 <code>Set</code> 对象的末尾添加一个指定的值。</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox"><code><em>mySet</em>.add(value);</code></pre>
<pre><code class="language-javascript"><code><em>mySet</em>.add(value);</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt>value</dt>
@@ -12,7 +12,7 @@
<p><code>Set</code> 对象本身</p>
<p>注意:不能添加重复的值</p>
<h2 id="Examples" name="Examples">示例</h2>
<pre class="brush: js">var mySet = new Set();
<pre><code class="language-javascript">var mySet = new Set();
mySet.add(1);
mySet.add(5).add("some text"); // 可以链式调用
@@ -22,7 +22,7 @@ console.log(mySet);
mySet.add(5).add(1);
console.log(mySet);
//Set [1, 5] // 重复的值没有被添加进去</pre>
//Set [1, 5] // 重复的值没有被添加进去</code></pre>
<p> </p>
<p> </p>
<p> </p>