編集モード

  • アクション
    フォント
  • 段落
  • レビュー
    テーブル
  • 区切り
  • フォーム
  • 特殊

JavaScript

JavaScript-logo.png JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles. JavaScript was formalized in the ECMAScript language standard and is primarily used in the form of client-side JavaScript, implemented as part of a Web browser in order to provide enhanced user interfaces and dynamic websites. This enables programmatic access to computational objects within a host environment. JavaScript's use in applications outside Web pages - for example in PDF documents, site-specific browsers, and desktop widgets - is also significant. Newer and faster JavaScript VMs and frameworks built upon them (notably Node.js) have also increased the popularity of JavaScript for server-side web applications. JavaScript uses syntax influenced by that of C. JavaScript copies many names and naming conventions from Java, but the two languages are otherwise unrelated and have very different semantics. The key design principles within JavaScript are taken from the Self and Scheme programming languages.

History

JavaScript was originally developed by Brendan Eich of Netscape under the name Mocha, which was later renamed to LiveScript, and finally to JavaScript. LiveScript was the official name for the language when it first shipped in beta releases of Netscape Navigator 2.0 in September 1995, but it was renamed JavaScript in a joint announcement with Sun Microsystems on December 4, 1995, when it was deployed in the Netscape browser version 2.0B3.

The change of name from LiveScript to JavaScript roughly coincided with Netscape adding support for Java technology in its Netscape Navigator web browser. The final choice of name caused confusion, giving the impression that the language was a spin-off of the Java programming language, and the choice has been characterized by many as a marketing ploy by Netscape to give JavaScript the cachet of what was then the hot new web-programming language. It has also been claimed that the language's name is the result of a co-marketing deal between Netscape and Sun, in exchange for Netscape bundling Sun's Java runtime with its then-dominant browser.

JavaScript very quickly gained widespread success as a client-side scripting language for web pages. As a consequence, Microsoft named its implementation JScript to avoid trademark issues. JScript added new date methods to fix the Y2K-problematic methods in JavaScript, which were based on Java's java.util.Date class. JScript was included in Internet Explorer 3.0, released in August 1996.

In November 1996, Netscape announced that it had submitted JavaScript to Ecma International for consideration as an industry standard, and subsequent work resulted in the standardized version named ECMAScript.

JavaScript has become one of the most popular programming languages on the web. Initially, however, many professional programmers denigrated the language because its target audience was web authors and other such "amateurs", among other reasons. The advent of Ajax returned JavaScript to the spotlight and brought more professional programming attention. The result was a proliferation of comprehensive frameworks and libraries, improved JavaScript programming practices, and increased usage of JavaScript outside of web browsers, as seen by the proliferation of server-side JavaScript platforms.

In January 2009, the CommonJS project was founded with the goal of specifying a common standard library mainly for JavaScript development outside the browser.

Versions

Version Release date Equivalent to Netscape Navigator Mozilla Firefox Internet Explorer Opera Safari Google Chrome
1.0 March 1996 2.0 3.0
1.1 August 1996 3.0
1.2 June 1997 4.0-4.05
1.3 October 1998 ECMA-262 1st edition / ECMA-262 2nd edition 4.06-4.7x 4.0
1.4 Netscape Server
1.5 November 2000 ECMA-262 3rd edition 6.0 1.0 5.5 (JScript 5.5), 6 (JScript 5.6), 7 (JScript 5.7), 8 (JScript 5.8) 6.0 3.0-5 1.0-10.0.666
1.6 November 2005 1.5 + Array extras + Array and String generics + E4X 1.5
1.7 October 2006 1.6 + Pythonic generators + Iterators + let 2.0
1.8 June 2008 1.7 + Generator expressions + Expression closures 3.0 11.50
1.8.1 1.8 + Native JSON support + Minor Updates 3.5
1.8.2 June 22, 2009 1.8.1 + Minor updates 3.6
1.8.5 July 27, 2010 1.8.2 + ECMAScript 5 Compliance 4 9
設定
説明

C1Editor は、デザインビュー、ソースビュー、分割ビューの 3 つの編集ビューをサポートします。 エディタの下部にあるツールバーを使用して、ビューを切り替えることができます。 C1Editor は、ブラウザウィンドウ(または親フレーム)全体に合わせてコントロールのサイズを変更するフルスクリーン編集モードもサポートしています。 フルスクリーンモードは、3 つの編集ビューのすべてで使用できます。

EditorMode プロパティは、3 つの値をサポートします。

  • WYSIWYG - デザインビューのサポート。
  • Code - ソースビューのサポート。
  • Split - 分割ビュー(デザインとソース)のサポート。
マニュアル