码迷,mamicode.com
首页 > 其他好文 > 详细

typescript 入门 01

时间:2019-11-03 21:53:22      阅读:65      评论:0      收藏:0      [点我收藏+]

标签:col   版本   命令   type   strong   str   使用   通过   安装   

安装 typescript 

cmd: npm  install -g typescript 


 

 

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

 

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

 

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

typescript 入门 01

标签:col   版本   命令   type   strong   str   使用   通过   安装   

原文地址:https://www.cnblogs.com/duanyiwen/p/11789242.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!