TypeScript是静态类型
npm install -g typescript安装ts
创建hello.ts通过tsc hello.ts将ts文件转换成js文件
tsc --help 查看方法
通过tsc -w hello.ts实现了监听的作用
tsc --init 会出来一个tsconfig.json文件
TypeScript是静态类型
npm install -g typescript安装ts
创建hello.ts通过tsc hello.ts将ts文件转换成js文件
tsc --help 查看方法
通过tsc -w hello.ts实现了监听的作用
tsc --init 会出来一个tsconfig.json文件