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
相關文章
相關標籤/搜索