typescript基本用法

typescript是js的超集! 安装与编译 npm安装web npm install typescript 全局typescript npm install typescript -g ts文件编译 tsc test.ts 返回值是一个js文件 监听 tsc test.ts --watch typescript数据类型 let a:string="abc"; //字符串 let b:numbe
相关文章
相关标签/搜索