create

  • 版本网址缩略名: JavaScript/Reference/Global_Objects/Object/create
  • 版本标题: create
  • 版本 id: 16181
  • 创建于:
  • 创建者: Ahong
  • 是否是当前版本?
  • 评论

修订内容

从这里开始
JavaScript 起始教程

JavaScript is a small, lightweight, object-oriented, cross-platform scripting language. JavaScript, while not useful as a standalone language, is designed for easy embedding in other products and applications, such as web browsers. Inside a host environment, JavaScript can be connected to the objects of that environment to provide programmatic control over them.

For information about using JavaScript in browsers, please see DOM and DHTML topics. The Gecko DOM Reference describes the host objects available in Gecko-based browsers. For information about embedding JavaScript engine in your application, see SpiderMonkey.

<a name="Selected_Articles"></a>

Selected Articles

New in JavaScript 1.6 </dt>
Describes new features of JavaScript 1.6, a new version of JavaScript supported by Firefox 1.5 and other Mozilla 1.8-based applications. </dd>
Migrate apps from Internet Explorer to Mozilla </dt>
Doron Rosenberg tells you how to make sure your web applications work in both IE and Mozilla.

</dd>

The World's Most Misunderstood Programming Language </dt>
Despite its popularity, few know that JavaScript is a very nice dynamic object-oriented general-purpose programming language. How can this be a secret? Why is this language so misunderstood? </dd>
JavaScript Closures </dt>
Closures are one of the most powerful features of ECMAScript (JavaScript) but they cannot be properly exploited without understanding them. They are, however, relatively easy to create, even accidentally, and their creation has potentially harmful consequences, particularly in some relatively common web browser environments. To avoid accidentally encountering the drawbacks and to take advantage of the benefits they offer it is necessary to understand their mechanism.

</dd>

Object Oriented Programming in JavaScript </dt>
Part I of this article discusses the creation of private variables and methods in classes in JavaScript. Part II covers inheritance. </dd>

View All...

<a name="Featured_Content"></a>

Featured Content

  • <a href="/en/docs/Core_JavaScript_1.5_Reference" title="Core JavaScript 1.5 Reference">Core JavaScript 1.5 Reference</a>
  • <a href="/en/docs/Core_JavaScript_1.5_Guide" title="Core JavaScript 1.5 Guide">Core JavaScript 1.5 Guide</a>
<a name="Other_Pages"></a>

Other Pages

  • <a href="/en/docs/Category:JavaScript:References" title="Category:JavaScript:References">References</a>
  • <a href="/en/docs/Category:JavaScript:Articles" title="Category:JavaScript:Articles">Articles</a>
  • <a href="/en/docs/Category:JavaScript:Examples" title="Category:JavaScript:Examples">Examples</a>
  • <a href="/en/docs/Category:JavaScript:Tools" title="Category:JavaScript:Tools">Tools</a>
  • <a href="/en/docs/JavaScript:Community" title="JavaScript:Community">Community</a>
  • <a href="/en/docs/JavaScript:Other_Resources" title="JavaScript:Other Resources">Other Resources</a>
<a name="Related_Topics"></a>

Related Topics

<a href="/en/docs/AJAX" title="AJAX">AJAX</a>, <a href="/en/docs/DOM" title="DOM">DOM</a>, <a href="/en/docs/DHTML" title="DHTML">DHTML</a>, <a href="/en/docs/E4X" title="E4X">E4X</a>, <a href="/en/docs/SpiderMonkey" title="SpiderMonkey">SpiderMonkey</a>

</dd>

<a href='http://developer.mozilla.org/webwatch'>MDC Webwatch</a>

  • <a href='http://developer.mozilla.org/webwatch/?p=130'>Yahoo! JavaScript Developer Center</a>
  • <a href='http://developer.mozilla.org/webwatch/?p=129'>FACE: Faruk’s Animated CSS Enhancements</a>
  • <a href='http://developer.mozilla.org/webwatch/?p=128'>Graphing with JavaScript and Canvas</a>
  • <a href='http://developer.mozilla.org/webwatch/?p=123'>Web Implementations of Tufte’s Sparklines</a>
  • <a href='http://developer.mozilla.org/webwatch/?p=121'>24 ways to impress your friends</a>

<a href="http://developer.mozilla.org/webwatch/?cat=3" class='external text' title="http://developer.mozilla.org/webwatch/?cat=3" rel="nofollow">View All...</a>


取自"<a href="http://developer.mozilla.org/en/docs/JavaScript">http://developer.mozilla.org/en/docs/JavaScript</a>"

</div> </div>

修订版来源

<div class="breadcrumbs"><a href="cn">首页</a>&gt; JavaScript</div>
<div class="callout-box"><b><a href="cn/%e4%bb%8e%e8%bf%99%e9%87%8c%e5%bc%80%e5%a7%8b">从这里开始</a></b><br>
JavaScript 起始教程</div>
<div>
<p><b>JavaScript</b> is a small, lightweight, object-oriented, cross-platform scripting language.  JavaScript, while not useful as a standalone language, is designed for easy embedding in other products and applications, such as web browsers.  Inside a host environment, JavaScript can be connected to the objects of that environment to provide programmatic control over them.
</p><p>For information about using JavaScript in browsers, please see <a href="cn/DOM">DOM</a> and <a href="cn/DHTML">DHTML</a> topics. The <a href="cn/Gecko_DOM_Reference">Gecko DOM Reference</a> describes the host objects available in <a href="cn/Gecko">Gecko</a>-based browsers.
For information about embedding JavaScript engine in your application, see <a href="cn/SpiderMonkey">SpiderMonkey</a>. 
</p>
</div>
<table class="topicpage-table">
<tbody><tr><td>
&lt;a name="Selected_Articles"&gt;&lt;/a&gt;<h4 name="Selected_Articles"> Selected Articles </h4>
<p></p><dl><dt> <a href="cn/New_in_JavaScript_1.6">New in JavaScript 1.6</a>
&lt;/dt&gt;</dt><dd> <small>Describes new features of JavaScript 1.6, a new version of JavaScript supported by Firefox 1.5 and other Mozilla 1.8-based applications.</small>
&lt;/dd&gt;</dd></dl>
<dl><dt> <a href="cn/Migrate_apps_from_Internet_Explorer_to_Mozilla">Migrate apps from Internet Explorer to Mozilla</a>
&lt;/dt&gt;</dt><dd> <small>Doron Rosenberg tells you how to make sure your web applications work in both IE and Mozilla.</small>
<p>&lt;/dd&gt;</p></dd></dl>
<dl><dt> <a href="cn/The_World's_Most_Misunderstood_Programming_Language">The World's Most Misunderstood Programming Language</a>
&lt;/dt&gt;</dt><dd> <small>Despite its popularity, few know that JavaScript is a very nice dynamic object-oriented general-purpose programming language. How can this be a secret? Why is this language so misunderstood?</small>
&lt;/dd&gt;</dd></dl>
<dl><dt> <a href="cn/JavaScript_Closures">JavaScript Closures</a>
&lt;/dt&gt;</dt><dd> <small>Closures are one of the most powerful features of <a href="cn/ECMAScript">ECMAScript</a> (JavaScript) but they cannot be properly exploited without understanding them. They are, however, relatively easy to create, even accidentally, and their creation has potentially harmful consequences, particularly in some relatively common web browser environments. To avoid accidentally encountering the drawbacks and to take advantage of the benefits they offer it is necessary to understand their mechanism.</small>
<p>&lt;/dd&gt;</p></dd></dl>
<dl><dt> <a href="cn/Object_Oriented_Programming_in_JavaScript">Object Oriented Programming in JavaScript</a>
&lt;/dt&gt;</dt><dd> <small>Part I of this article discusses the creation of private variables and methods in classes in JavaScript. <span class="exlink"><a href="cn/Part_II">Part II</a></span> covers inheritance.</small>
&lt;/dd&gt;</dd></dl>

<p><span class="alllinks"><a href="cn/View_All...">View All...</a></span>
</p>
</td>
<td>
&lt;a name="Featured_Content"&gt;&lt;/a&gt;<h4 name="Featured_Content"> Featured Content </h4>
<ul><li> &lt;a href="/en/docs/Core_JavaScript_1.5_Reference" title="Core JavaScript 1.5 Reference"&gt;Core JavaScript 1.5 Reference&lt;/a&gt;
</li><li> &lt;a href="/en/docs/Core_JavaScript_1.5_Guide" title="Core JavaScript 1.5 Guide"&gt;Core JavaScript 1.5 Guide&lt;/a&gt;
</li></ul>
&lt;a name="Other_Pages"&gt;&lt;/a&gt;<h4 name="Other_Pages"> Other Pages </h4>
<ul><li> &lt;a href="/en/docs/Category:JavaScript:References" title="Category:JavaScript:References"&gt;References&lt;/a&gt;
</li><li> &lt;a href="/en/docs/Category:JavaScript:Articles" title="Category:JavaScript:Articles"&gt;Articles&lt;/a&gt;
</li><li> &lt;a href="/en/docs/Category:JavaScript:Examples" title="Category:JavaScript:Examples"&gt;Examples&lt;/a&gt;
</li><li> &lt;a href="/en/docs/Category:JavaScript:Tools" title="Category:JavaScript:Tools"&gt;Tools&lt;/a&gt;
</li><li> &lt;a href="/en/docs/JavaScript:Community" title="JavaScript:Community"&gt;Community&lt;/a&gt;
</li><li> &lt;a href="/en/docs/JavaScript:Other_Resources" title="JavaScript:Other Resources"&gt;Other Resources&lt;/a&gt;
</li></ul>
&lt;a name="Related_Topics"&gt;&lt;/a&gt;<h4 name="Related_Topics"> Related Topics </h4>
<p></p><dl><dd> &lt;a href="/en/docs/AJAX" title="AJAX"&gt;AJAX&lt;/a&gt;, &lt;a href="/en/docs/DOM" title="DOM"&gt;DOM&lt;/a&gt;, &lt;a href="/en/docs/DHTML" title="DHTML"&gt;DHTML&lt;/a&gt;, &lt;a href="/en/docs/E4X" title="E4X"&gt;E4X&lt;/a&gt;, &lt;a href="/en/docs/SpiderMonkey" title="SpiderMonkey"&gt;SpiderMonkey&lt;/a&gt;
<p>&lt;/dd&gt;</p></dd></dl>

<h4 name=".3Ca_href.3D.27.3EMDC_Webwatch.3C.2Fa.3E">&lt;a href='http://developer.mozilla.org/webwatch'&gt;MDC Webwatch&lt;/a&gt;</h4><ul><li>&lt;a href='http://developer.mozilla.org/webwatch/?p=130'&gt;Yahoo! JavaScript Developer Center&lt;/a&gt;</li><li>&lt;a href='http://developer.mozilla.org/webwatch/?p=129'&gt;FACE: Faruk’s Animated CSS Enhancements&lt;/a&gt;</li><li>&lt;a href='http://developer.mozilla.org/webwatch/?p=128'&gt;Graphing with JavaScript and Canvas&lt;/a&gt;</li><li>&lt;a href='http://developer.mozilla.org/webwatch/?p=123'&gt;Web Implementations of Tufte’s Sparklines&lt;/a&gt;</li><li>&lt;a href='http://developer.mozilla.org/webwatch/?p=121'&gt;24 ways to impress your friends&lt;/a&gt;</li></ul>
<p><span class="alllinks">&lt;a href="http://developer.mozilla.org/webwatch/?cat=3" class='external text' title="http://developer.mozilla.org/webwatch/?cat=3" rel="nofollow"&gt;View All...&lt;/a&gt;</span>
</p>
</td>
</tr>
</tbody></table>
<p><br>
</p><div class="printfooter">
取自"&lt;a href="http://developer.mozilla.org/en/docs/JavaScript"&gt;http://developer.mozilla.org/en/docs/JavaScript&lt;/a&gt;"</div>
				<div id="catlinks"><p class="catlinks">&lt;a href="/en/docs/index.php?title=Special:Categories&amp;article=JavaScript" title="Special:Categories"&gt;页面分类&lt;/a&gt;: &lt;a href="/en/docs/Category:JavaScript" title="Category:JavaScript"&gt;JavaScript&lt;/a&gt;</p></div>		
<p>		&lt;/div&gt;
	&lt;/div&gt;
</p>
恢复到这个版本