一、安装依赖
cnpm i typescript -g 安装tscnpm i ts-node -g 安装tstsc --version 查看ts的版本号
编译
// 在ts中 变量后面: 指明变量的类型var str:string = "hello world"console.log(str);
编译tsc 01hello.ts
安装插件
Code Runner
运行
1-1 tsc --init tsconfig.json1-2 终端-->运行任务--> tsc:监视 tsconfig.json
