運行typescript

1. 安裝 npm install -g typescript cnpm install -g typescript yarn add global typescript 驗證安裝成功: 重新打開命令終端 輸入tsc -v 2. 運行typescript tsc greeter.ts 會生成相應的es5js代碼 3. 使用vscode自動編譯.ts文件 tsc --init 生成tsconfig.
相關文章
相關標籤/搜索