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

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>forEach 方法根据集合中元素的顺序,对每个元素都执行提供的 callback 函数一次。</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code><em>mySet</em>.forEach(<em>callback</em>[, <em>thisArg</em>])</code></pre>
<pre><code class="language-javascript"><code><em>mySet</em>.forEach(<em>callback</em>[, <em>thisArg</em>])</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>callback</code></dt>
@@ -25,7 +25,7 @@
<h2 id="例子">例子</h2>
<h3 id="输出Set对象的内容">输出Set对象的内容</h3>
<p><span class="outputBox-2liU7_0">以下代码为Set对象中的每个元素记录一行:</span></p>
<pre class="brush:js">function logSetElements(value1, value2, set) {
<pre><code class="language-js">function logSetElements(value1, value2, set) {
console.log("s[" + value1 + "] = " + value2);
}
@@ -35,7 +35,7 @@ new Set(["foo", "bar", undefined]).forEach(logSetElements);
// "s[foo] = foo"
// "s[bar] = bar"
// "s[undefined] = undefined"
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>