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

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

@@ -9,7 +9,7 @@
<h2 id="Summary" name="Summary">概述</h2>
<p><code><strong>__defineGetter__</strong></code> 方法可以将一个函数绑定在当前对象的指定属性上,当那个属性的值被读取时,你所绑定的函数就会被调用。</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox"><code><var>obj</var>.__defineGetter__(<var>prop</var>, <var>func</var>)</code></pre>
<pre><code class="language-javascript"><code><var>obj</var>.__defineGetter__(<var>prop</var>, <var>func</var>)</code></code></pre>
<h3 id="Parameters" name="Parameters">参数</h3>
<dl>
<dt>
@@ -24,7 +24,7 @@
<h2 id="Description" name="Description">描述</h2>
<p><code>__defineGetter__ 方法可以为一个已经存在的对象设置(新建或修改)访问器属性,</code><a class="new" href="Reference/Operators/get" rel="nofollow" title="此页面仍未被本地化, 期待您的翻译!">对象字面量中的 get 语法</a> 只能在新建一个对象时使用。</p>
<h2 id="Examples" name="Examples"><span class="def"><span>示例</span></span></h2>
<pre class="brush: js">// 请注意,该方法是非标准的:
<pre><code class="language-javascript">// 请注意,该方法是非标准的:
var o = {};
o.__defineGetter__('gimmeFive', function() { return 5; });
@@ -45,7 +45,7 @@ Object.defineProperty(o, 'gimmeFive', {
}
});
console.log(o.gimmeFive); // 5
</pre>
</code></pre>
<h2 id="Specifications" name="Specifications">规范</h2>
<p>不属于任何规范。</p>
<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2>