摘要: 1、解决TS 和JS 冲突解决 tsc --init # 生成配置文件去修改配置文件 2、如何自动编译 tsc --watch 3、发出错误 tsc -noEmitOnError hello.ts 4、降级处理 通过tsconfig.json中去修改配置项 "target": "es2016", / 阅读全文
posted @ 2022-05-10 17:45 三寸日光 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1、安装VSCode https://code.visualstudio.com/Download 2、安装Node.js https://nodejs.org/en/download/ 3、安装TypeScript编译器 npm instrall -g typescript 4、写ts相关的代码, 阅读全文
posted @ 2022-05-10 11:09 三寸日光 阅读(134) 评论(0) 推荐(0) 编辑