Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript系列(零)— 总体概述 #40

Open
LightXJ opened this issue Jun 23, 2020 · 0 comments
Open

TypeScript系列(零)— 总体概述 #40

LightXJ opened this issue Jun 23, 2020 · 0 comments

Comments

@LightXJ
Copy link
Owner

LightXJ commented Jun 23, 2020

image

一、TypeScript 是什么

TypeScript 是一种由微软开发的自由和开源的编程语言。它是 JavaScript 的一个超集,而且本质上向这个语言添加了可选的静态类型和基于类的面向对象编程。
TypeScript 提供最新的和不断发展的 JavaScript 特性,包括那些来自 2015 年的 ECMAScript 和未来的提案中的特性,比如异步功能和 Decorators,以帮助建立健壮的组件。下图显示了 TypeScript 与 ES5、ES2015 和 ES2016 之间的关系:

1.1 TypeScript 与 JavaScript 的区别

image

1.2 获取 TypeScript

命令行的 TypeScript 编译器可以使用 Node.js 包来安装。
1.安装 TypeScript
npm install -g typescript
2.编译 TypeScript 文件
tsc helloworld.ts

参考:
1、1.2W字 | 了不起的 TypeScript 入门教程:https://juejin.im/post/5edd8ad8f265da76fc45362c

@LightXJ LightXJ changed the title TypeScript系列(一)— TypeScript系列(零)— 总体概述 Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant