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

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

@@ -4,8 +4,8 @@
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/reflect-ownkeys.html" width="100%"></iframe></div>
<p class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a class="external" href="https://github.com/mdn/interactive-examples" rel="noopener">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox">Reflect.ownKeys(target)
</pre>
<pre><code class="language-javascript">Reflect.ownKeys(target)
</code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>target</code></dt>
@@ -19,7 +19,7 @@
<p><code>Reflect.ownKeys</code> 方法返回一个由目标对象自身的属性键组成的数组。它的返回值等同于<code><a href="Reference/Global_Objects/Object/getOwnPropertyNames" title="Object.getOwnPropertyNames()方法返回一个由指定对象的所有自身属性的属性名包括不可枚举属性但不包括Symbol值作为名称的属性组成的数组。"><code>Object.getOwnPropertyNames</code></a>(target).concat(<a href="Reference/Global_Objects/Object/getOwnPropertySymbols" title="Object.getOwnPropertySymbols() 方法返回一个给定对象自身的所有 Symbol 属性的数组。"><code>Object.getOwnPropertySymbols</code></a>(target))。</code></p>
<h2 id="示例">示例</h2>
<h3 id="使用_Reflect.ownKeys()">使用 <code>Reflect.ownKeys()</code></h3>
<pre class="brush: js">Reflect.ownKeys({z: 3, y: 2, x: 1}); // [ "z", "y", "x" ]
<pre><code class="language-javascript">Reflect.ownKeys({z: 3, y: 2, x: 1}); // [ "z", "y", "x" ]
Reflect.ownKeys([]); // ["length"]
var sym = Symbol.for("comet");
@@ -31,7 +31,7 @@ Reflect.ownKeys(obj);
// Indexes in numeric order,
// strings in insertion order,
// symbols in insertion order
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>