安装typescript
npm install -g typescript
安装完成后运行 tsc -V 查看版本
安装ts-node
npm install ts-node -g
vscode 安装 CodeRunner
image.png
第一个ts文件-hello.ts
创建文件hello.ts
console.log('hello typescript!')
npm install -g typescript
安装完成后运行 tsc -V 查看版本
npm install ts-node -g
image.png
创建文件hello.ts
console.log('hello typescript!')
本文标题:(一) typescript环境准备
本文链接:https://www.haomeiwen.com/subject/gmepsdtx.html
网友评论