Hello TypeScript

⒈TypeScript Profile

  1.JavaScript superset

  2. Support ECMAScript6 standard, and supports output ECMAScript3 / 5/6 standard pure JavaScript code

  3. Support characteristics proposal ECMAScript future, such as asynchronous features and decorators

  4. The type of support system and you have type inference

  5. Support run in any browser, Node.js environment

⒉JavaScript history

  In 1995, LiveScript equipped with the first release in the Netscape browser, Netscape think the name because the lack of heat, so I decided to rub it popular Java heat, and finally renamed to JavaScript.

  The relationship between JavaScript and Java, and the equivalent relationship Lei Feng Pagoda.

  JavaScript's success attracted the attention of Microsoft, and then carrying another JavaScript implementation of JScript on IE3.0, the lack of standardization means that two kinds of appearance of the browser language JavaScript language.

  In 1996, Netscape JavaScript will be submitted to the ECMA International (European Computer Manufacturers Association) to standardize finalize the new language standard, named ECMAScript. Since all JavaScript implementations must be based on ECMAScript standards-based, but due to historical reasons JavaScript, JavaScript is the language we still call, called ECMAScript standard.

  In 1997 ECMAScript released the first version of the standard.

  In June 1998 released the second version of the standard.

  After the release of the third edition in December 1999, after 10 years between, ECMAScript standardization never able to make much of a contribution, even different browsers implement the standard quite different. Not only that, the major manufacturers have begun to add "contraband" in to your own JavaScript, such as in JScript ActiveXObject.

  This is what 10 years actually happened? Relatively fair view is due ECMAScript4 too radical draft has led to consistent browser vendors boycott. Flash in IE and strong in this period also led to a further decline of ECMAScript.

  Until the fall of 2005, Task Group 1 of Ecma Technical Committee 39 (TG1) began to meet regularly after the fire of Ajax make people aware of the revival of JavaScript, it began to accelerate standardization work.

  After a series of complex debates, in December 2009 ECMAScript5 be released. Then in 2012, foreign developer community to stop pushing IE support the work of the old version, making ECMAScript5 became popular.

  By 2015, the Commission draft ECMAScript specification TC39 decided to define a new standard system to a once a year, which means that the update is no longer dependent on the ECMAScript completion of the draft as a whole, but may be based on characteristics of the rolling release added. In the same year, code-named Harmony of ECMAScript6, is familiar ES6 (or called ES2015) is released. Harmony (Harmony) This name is very interesting, as if to tell the developers so many years of conflict and chaos finally subsided.

  But now the browser began to drag, and is often difficult to get the new features supported browsers for the first time, so this time the birth of a large number of front-end tools that enable developers to use in a development environment or published or advance ECMAScript new features of the draft. For example, the introduction of Babel characteristics ECMAScript by way of plug-ins, or code ES3 and ES5 compiled into the production environment.

⒊TypeScript appear

  JavaScript code becomes increasingly large demand makes the construction of large-scale JavaScript applications increasingly strong, using JavaScript to build large-scale Web applications can easily get out of control, it becomes difficult to manage.

  Microsoft believes that JavaScript is just a scripting language, simple design, and lack of support for class modules, not really for the development of large Web applications, which makes internal Microsoft began to require custom JavaScript development tools to strengthen demand.

  October 2012, Delphi, C # father of Anders Hirschberg presided over the development of TypeScript finally released.

  TypeScript main features are as follows:

    1. The free and open source, using the Apache license.

    2. extended based on the ECMAScript standard, it is a superset of JavaScript.

    3. Add optional static types, classes and modules

    4 can be compiled into a readable, in line with standard JavaScript ECMAScript

    5. become the host operating system and a cross-platform tool that supports all browsers,

    6. The guarantee can be run in conjunction with JavaScript code, without modification. (This is to ensure that the project can smoothly migrate JavaScript to TypeScript)

    7. The file extension is ts

    8. Check the compiler, the runtime does not pollute

⒋TypeScript environment ready

  1. Install Node.js

Guess you like

Origin www.cnblogs.com/fanqisoft/p/11823461.html