安装VSCode 配置自动编译第一步:创建 tsconfig.json 文件第二步:监视任务 安装npm install -g typescript// 解析 将 .ts 文件 => .js 文件tsc helloworld.ts VSCode 配置自动编译 第一步:创建 tsconfig.json 文件通过下面的命令,生成 tsconfig.json 文件 tsc --init 第二步:监视任务 之后,.ts 文件发生变化会自动生成 .js文件