learn-typescript ts npm init -y 自动创建package.json tsc --init 自动创建tsconfig.json tsc 1.ts 编译成1.js tsc --watch 改完代码马上编译,观察者模式 1.ts 基本数据类型,复杂数据类型 2.ts 函数