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

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,8 +2,8 @@
<div></div>
<p>静态方法 <code><strong>Reflect</strong></code><strong><code>.has()</code></strong> 作用与 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in"><code>in</code> 操作符</a> 相同。</p>
<h2 id="句法">句法</h2>
<pre class="syntaxbox">Reflect.has(target, propertyKey)
</pre>
<pre><code class="language-javascript">Reflect.has(target, propertyKey)
</code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>target</code></dt>
@@ -19,7 +19,7 @@
<p><code>Reflect.has</code> 用于检查一个对象是否拥有某个属性, 相当于<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in"><code>in</code> 操作符</a> 。</p>
<h2 id="示例">示例</h2>
<h3 id="使用_Reflect.has()">使用 <code>Reflect.has()</code></h3>
<pre class="brush: js">Reflect.has({x: 0}, "x"); // true
<pre><code class="language-javascript">Reflect.has({x: 0}, "x"); // true
Reflect.has({x: 0}, "y"); // false
// 如果该属性存在于原型链中返回true
@@ -31,7 +31,7 @@ obj = new Proxy({}, {
});
Reflect.has(obj, "doorbell"); // true
Reflect.has(obj, "dormitory"); // false
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>