JavaScript

  • 版本网址缩略名: JavaScript
  • 版本标题: JavaScript
  • 版本 id: 355579
  • 创建于:
  • 创建者: ziyunfei
  • 是否是当前版本?
  • 评论

修订内容

A re-introduction to JavaScript
An overview for those who think they know about JavaScript

JavaScript (often shortened to JS) is a lightweight, interpreted, object-oriented language with first-class functions, most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB.

Javascript(常常被简称为JS)是一门轻量型,解释型,面向对象并且以函数为一等对象的语言。以网页端的脚本语言而著称,但是现在也可以用在许多非浏览器端,例如node.js或者是Apach CouchDB

The JavaScript standard is ECMAScript. As of 2012, all modern browsers fully support ECMAScript 5.1. Older browsers support at least ECMAScript 3. A 6th major revision of the standard is being worked on. Progress of different new features can be followed on the dedicated wiki.

JavaScript的标准是ECMAScript。在2012年的时候,所有的现代浏览器都全面支持了ECMAScript5.1,老一点的浏览器至少都支持了ECMAScript 3.第六版重量级版本也正在工作中。

This section of the site is dedicated to the JavaScript language itself, the parts that are not specific to Web pages or other host environments. For information about APIs specific to Web pages, please see DOM. Read more about how DOM and JavaScript fit together in the DOM Reference

Documentation

JavaScript Reference
This JavaScript reference includes complete documentation for JavaScript 1.5 and updates.
JavaScript Guide
Our primary guide about how to program with JavaScript.

Introductory articles

JavaScript technologies overview
Introduction to the web browser JavaScript landscape
JavaScript data structures
Overview of available data structures in JavaScript
Inheritance and the prototype chain
Explanation of the widely misunderstood and under-estimated prototype-based inheritance
Canvas tutorial
<canvas> is the HTML5 element which can be used to draw graphics using scripting. It can for instance be used to draw graphs, make photo compositions or do simple (and not so simple) animations.
JavaScript Language Resources
A description of the JavaScript language standards.
Internet Explorer Standards Support Documents
Microsoft publishes documents that describe "variations, clarifications, and extensions to certain final approved web standards supported by Internet Explorer." Of these the ones that are related to JavaScript are:

View All...

Tools & advanced resources

View All...

Other resources

JavaScript Garden
A site with helpful information about the more esoteric parts of JavaScript.
JSWiki
A Github-based wiki that indexes libraries and resources
Stack Overflow
A collaboratively built and maintained Q&A site and look if you can find the answer to your question. If not you will be able to ask your question there.
Pineapple · JavaScript
A large database of current JavaScript tutorials and resources.

dddddJavaScript is a trademark or registered trademark of Oracle in the U.S. and other countries.

 

修订版来源

<div class="callout-box">
  <strong><a href="/en-US/docs/JavaScript/A_re-introduction_to_JavaScript" title="./A re-introduction to JavaScript">A re-introduction to JavaScript</a></strong><br />
  An overview for those who <em>think</em> they know about JavaScript</div>
<p><strong>JavaScript</strong> (often shortened to <strong>JS</strong>) is a lightweight, interpreted, object-oriented language with first-class functions, most known as the scripting language for Web pages, but <a class="external" href="http://en.wikipedia.org/wiki/JavaScript#Uses_outside_web_pages" title="http://en.wikipedia.org/wiki/JavaScript#Uses_outside_web_pages">used in many non-browser environments</a> as well such as <a class="external" href="http://nodejs.org/">node.js</a> or <a href="http://couchdb.apache.org" title="http://couchdb.apache.org">Apache CouchDB</a>.</p>
<p>Javascript(常常被简称为JS)是一门轻量型,解释型,面向对象并且以函数为一等对象的语言。以网页端的脚本语言而著称,但是现在也可以用在许多非浏览器端,例如node.js或者是Apach CouchDB</p>
<p>The JavaScript standard is <a href="/en-US/docs/JavaScript/Language_Resources" title="ECMAScript">ECMAScript</a>. As of 2012, all modern browsers fully support ECMAScript 5.1. Older browsers support at least ECMAScript 3. A 6th major revision of the standard is being worked on. Progress of different new features can be followed on the <a class="external" href="http://wiki.ecmascript.org/doku.php?id=harmony:proposals">dedicated wiki</a>.</p>
<p>JavaScript的标准是ECMAScript。在2012年的时候,所有的现代浏览器都全面支持了ECMAScript5.1,老一点的浏览器至少都支持了ECMAScript 3.第六版重量级版本也正在工作中。</p>
<p>This section of the site is dedicated to the JavaScript language itself, the parts that are not specific to Web pages or other host environments. For information about APIs specific to Web pages, please see <a href="/en-US/docs/DOM" title="DOM">DOM</a>. Read more about how DOM and JavaScript fit together in the <a href="/en-US/docs/Gecko_DOM_Reference/Introduction#DOM_and_JavaScript" title="Gecko DOM Reference/Introduction#DOM and JavaScript">DOM Reference</a></p>
<table class="topicpage-table">
  <tbody>
    <tr>
      <td>
        <h2 class="Documentation" id="Documentation">Documentation</h2>
        <dl>
          <dt>
            <a href="/en-US/docs/JavaScript/Reference" title="JavaScript/Reference">JavaScript Reference</a></dt>
          <dd>
            This JavaScript reference includes complete documentation for JavaScript 1.5 and updates.</dd>
          <dt>
            <a href="/en-US/docs/JavaScript/Guide" title="JavaScript/Guide">JavaScript Guide</a></dt>
          <dd>
            Our primary guide about how to program with JavaScript.</dd>
        </dl>
        <h3 id="Introductory_articles">Introductory articles</h3>
        <dl>
          <dt>
            <a href="/en-US/docs/JavaScript_technologies_overview" title="./Guide">JavaScript technologies overview</a></dt>
          <dd>
            Introduction to the web browser JavaScript landscape</dd>
          <dt>
            <a href="/en-US/docs/JavaScript/Data_structures" title="Data structures">JavaScript data structures</a></dt>
          <dd>
            Overview of available data structures in JavaScript</dd>
          <dt>
            <a href="/en-US/docs/JavaScript/Guide/Inheritance_and_the_prototype_chain" title="JavaScript/Guide/Inheritance_and_the_prototype_chain">Inheritance and the prototype chain</a></dt>
          <dd>
            Explanation of the widely misunderstood and under-estimated prototype-based inheritance</dd>
        </dl>
        <h3 id="Other_articles">Other articles</h3>
        <dl>
          <dt>
            <a href="/en-US/docs/Canvas_tutorial" title="Canvas_tutorial">Canvas tutorial</a></dt>
          <dd>
            &lt;canvas&gt; is the HTML5 element which can be used to draw graphics using scripting. It can for instance be used to draw graphs, make photo compositions or do simple (and not so simple) animations.</dd>
          <dt>
            <a href="/en-US/docs/JavaScript/Language_Resources" title="Language Resources">JavaScript Language Resources</a></dt>
          <dd>
            A description of the JavaScript language standards.</dd>
          <dt>
            <a class="external" href="http://msdn.microsoft.com/en-us/library/ff405926.aspx" title="http://msdn.microsoft.com/en-us/library/ff405926.aspx">Internet Explorer Standards Support Documents</a></dt>
          <dd>
            Microsoft publishes documents that describe "variations, clarifications, and extensions to certain final approved web standards supported by Internet Explorer." Of these the ones that are related to JavaScript are:
            <ul>
              <li><a class="external" href="http://msdn.microsoft.com/en-us/library/ff520996.aspx" title="http://msdn.microsoft.com/en-us/library/ff520996.aspx">[MS-ES3]: Internet Explorer ECMA-262 ECMAScript Language Specification Standards Support Document </a></li>
              <li><a class="external" href="http://msdn.microsoft.com/en-us/library/ff521046.aspx" title="http://msdn.microsoft.com/en-us/library/ff521046.aspx">[MS-ES3EX]: Microsoft JScript Extensions to the ECMAScript Language Specification Third Edition </a></li>
              <li><a class="external" href="http://msdn.microsoft.com/en-us/library/ff960769.aspx" title="http://msdn.microsoft.com/en-us/library/ff960769.aspx">[MS-ES5]: Internet Explorer ECMA-262 ECMAScript Language Specification (Fifth Edition) Standards Support Document </a></li>
              <li><a class="external" href="http://msdn.microsoft.com/en-us/library/ff955363.aspx" title="http://msdn.microsoft.com/en-us/library/ff955363.aspx">[MS-ES5EX]: Internet Explorer Extensions to the ECMA-262 ECMAScript Language Specification (Fifth Edition)</a></li>
            </ul>
          </dd>
        </dl>
        <p><span class="alllinks"><a href="/en-US/docs/tag/JavaScript" title="/en-US/tag/JavaScript">View All...</a></span></p>
      </td>
      <td>
        <h2 class="Tools" id="Tools_.26_advanced_resources">Tools &amp; advanced resources</h2>
        <ul>
          <li><a href="http://www.codecademy.com/" title="http://www.codecademy.com/">Codecademy</a> - Free JavaScript course with interactive problems</li>
          <li><a href="http://codeschool.com" title="http://codeschool.com">Code School </a>- Learn by Doing, Multiple JS courses</li>
          <li><a class="link-https" href="https://github.com/rwldrn/idiomatic.js">Idiomatic.js</a> - Principles of Writing Consistent, Idiomatic JavaScript</li>
          <li><a href="/en-US/docs/JavaScript/Memory_Management" title="Memory Management">Memory Management in JavaScript</a> . Overview of how memory management works in JavaScript</li>
          <li><a class="external" href="http://www.getfirebug.com/">Firebug</a> - JavaScript debugging and profiling</li>
          <li><a href="/en-US/docs/Venkman" title="Venkman">Venkman</a> - JavaScript debugger</li>
          <li><a href="/en-US/docs/JavaScript/Shells" title="./Shells">JavaScript Shells</a> - test snippets of code</li>
          <li><a class="external" href="http://www.jslint.com/lint.html">JSLint</a> - syntax checker, warns against bad practices</li>
          <li><a class="external" href="http://jshint.com" title="http://jshint.com/">JSHint</a> - community-made syntax checker</li>
          <li><a class="external" href="http://code.google.com/p/jsdoc-toolkit/" title="http://code.google.com/p/jsdoc-toolkit/">JSDoc</a> - generate documentation from code</li>
          <li><a class="external" href="http://www.aptana.com" title="http://www.aptana.com">Aptana Studio</a> - Open source IDE with Ajax and JavaScript support (based on eclipse)</li>
          <li><a class="external" href="http://netbeans.org/features/javascript/">Netbeans</a> - Open source IDE which includes sophisticated JavaScript support</li>
          <li><a class="external" href="http://www.eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/heliossr1">Eclipse</a> - Open source IDE which includes JavaScript Development Toolkit</li>
          <li><a class="external" href="http://www.c9.io" title="http://www.c9.io">Cloud9 IDE</a> - Open source IDE that runs in the browser with JavaScript and Node.js support</li>
          <li><a class="external" href="http://prettydiff.com/" title="http://prettydiff.com/">Pretty Diff </a>- a diff tool for comparing minified code to regular code</li>
          <li><a class="link-https" href="https://addons.mozilla.org/en-US/firefox/addon/7434">Extension Developer's Extension</a> - Offers JS Environment and Shell</li>
          <li><a href="http://boilerplatejs.org/" title="http://boilerplatejs.org/">BoilerplateJS</a>&nbsp;- Reference architecture for large scale JavaScript projects</li>
          <li><a href="/en-US/docs/JavaScript/Other_JavaScript_tools" title="./Other JavaScript tools">Other JavaScript tools</a></li>
        </ul>
        <p><span class="alllinks"><a href="/en-US/docs/tag/JavaScript:Tools" title="/en-US/docs/tag/JavaScript:Tools">View All...</a></span></p>
        <h2 class="Community" id="Other resources" name="Other resources">Other resources</h2>
        <dl>
          <dt>
            <a class="external" href="http://bonsaiden.github.com/JavaScript-Garden" title="http://bonsaiden.github.com/JavaScript-Garden">JavaScript Garden</a></dt>
          <dd>
            A site with helpful information about the more esoteric parts of JavaScript.</dd>
          <dt>
            <a class="link-https" href="https://github.com/bebraw/jswiki/wiki" title="https://github.com/bebraw/jswiki/wiki">JSWiki</a></dt>
          <dd>
            A Github-based wiki that indexes libraries and resources</dd>
          <dt>
            <a href="http://stackoverflow.com/questions/tagged/javascript" title="http://stackoverflow.com/questions/tagged/css">Stack Overflow</a></dt>
          <dd>
            A collaboratively built and maintained Q&amp;A site and look if you can find the answer to your question. If not you will be able to ask your question there.</dd>
          <dt>
            <a href="http://pineapple.io/resources/tagged/javascript?type=tutorials&amp;sort=all_time" title="http://pineapple.io/resources/tagged/javascript?type=tutorials&amp;sort=all_time">Pineapple · JavaScript</a></dt>
          <dd>
            A large database of current JavaScript tutorials and resources.</dd>
        </dl>
        <h2 class="Related_Topics" id="Related_Topics" name="Related_Topics">Related topics</h2>
        <ul>
          <li><a href="/en-US/docs/AJAX" title="AJAX">AJAX</a>, <a href="/en-US/docs/DOM" title="DOM">DOM</a>, <a class="internal" href="/en-US/docs/JavaScript/Server-Side_JavaScript" title="./Server-Side JavaScript">Server-Side JavaScript</a>, <a href="/en-US/docs/DHTML" title="DHTML">DHTML</a>, <a href="/en-US/docs/E4X" title="E4X">E4X</a>, <a href="/en-US/docs/SpiderMonkey" title="SpiderMonkey">SpiderMonkey</a>, <a href="/en-US/docs/HTML/Canvas" title="HTML/Canvas">Canvas</a></li>
        </ul>
      </td>
    </tr>
  </tbody>
</table>
<p>dddddJavaScript is a trademark or registered trademark of Oracle in the U.S. and other countries.</p>
<p>&nbsp;</p>
恢复到这个版本