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

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,12 +2,12 @@
<div></div>
<p>The initial value of the <code><strong>@@iterator</strong></code> property is the same function object as the initial value of the <a href="Reference/Global_Objects/Set/values" title="values() 方法返回一个 Iterator  对象,这个对象以插入 Set 对象的顺序包含了原 Set 对象里的每个元素。"><code>values</code></a> property.</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><em>mySet</em>[Symbol.iterator]</code></pre>
<pre><code class="language-javascript"><code><em>mySet</em>[Symbol.iterator]</code></code></pre>
<h3 id="返回值">返回值</h3>
<p>The <code>Set</code> <strong>iterator</strong> function, which is the <a href="Reference/Global_Objects/Set/values" title="values() 方法返回一个 Iterator  对象,这个对象以插入 Set 对象的顺序包含了原 Set 对象里的每个元素。"><code>values()</code></a> function by default.</p>
<h2 id="示例">示例</h2>
<h3 id="Using_iterator()">Using <code>[@@iterator]()</code></h3>
<pre class="brush:js">var mySet = new Set();
<pre><code class="language-js">var mySet = new Set();
mySet.add("0");
mySet.add(1);
mySet.add({});
@@ -17,9 +17,9 @@ var setIter = mySet[Symbol.iterator]();
console.log(setIter.next().value); // "0"
console.log(setIter.next().value); // 1
console.log(setIter.next().value); // Object
</pre>
</code></pre>
<h3 id="Using_iterator()_with_for..of">Using <code>[@@iterator]()</code> with <code>for..of</code></h3>
<pre class="brush:js">var mySet = new Set();
<pre><code class="language-js">var mySet = new Set();
mySet.add("0");
mySet.add(1);
mySet.add({});
@@ -27,7 +27,7 @@ mySet.add({});
for (var v of mySet) {
console.log(v);
}
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>