clsr_dd

typescript 入门 01

安装 typescript 

cmd: npm  install -g typescript 


 

 

安装成功以后  就可以使用 tsc 命令   例如 tsc -V 查看当前typescript的版本 

 

typescript文件 的运行 需要进行编译成为js 文件,然后通过node 运行js 文件

 

编译命令:tsc xxx.ts      运行命令 node xxx.js

posted on 2019-11-03 21:25  clsr_dd  阅读(97)  评论(0编辑  收藏  举报

导航