2019-04-21 11:50:48 +08:00

33 lines
1.7 KiB
HTML

<article id="wikiArticle">
<div>
<div> <div class="blockIndicator obsolete obsoleteHeader"><p><strong><span class="icon-only-inline" title="This is an obsolete API and is no longer guaranteed to work."><i class="icon-trash"> </i></span> 已废弃 Gecko 2 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)</strong><br/>This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.</p></div></div>
</div>
<h2 id="Summary" name="Summary">概述</h2>
<p>指向一个对象的上下文.</p>
<table class="standard-table">
<thead>
<tr>
<th class="header" colspan="2">Property of <a href="/en-US/docs/JavaScript/Reference/Global_Objects/Object" title="JavaScript/Reference/Global_Objects/Object"><code>Object</code></a></th>
</tr>
</thead>
<tbody>
<tr>
<td>Implemented in</td>
<td>JavaScript ?</td>
</tr>
<tr>
<td>ECMAScript Edition</td>
<td>-</td>
</tr>
</tbody>
</table>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre><code class="language-javascript"><code><em>obj</em>.__parent__</code></code></pre>
<h2 id="Description" name="Description">描述</h2>
<p>对于最顶层对象来说,这个属性的值就是全局对象window.</p>
<h2 id="See_also" name="See_also">相关链接</h2>
<ul>
<li><a class="external" href="http://whereswalden.com/2010/05/07/spidermonkey-change-du-jour-the-special-__parent__-property-has-been-removed/" rel="noopener">SpiderMonkey change du jour: the special __parent__ property has been removed</a></li>
<li><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Object/Proto" title="__proto__ | JavaScript | MDN">__proto__</a></li>
</ul>
</article>