typescript入门

##序 选择typescript的原因很简单,它出自Delphi、C#之父Anders Hejlsberg之手。对于熟悉java的开发者来说,可以继承之前的后端开发的基本概念,比如DI。

##安装

npm install -g typescript

##hello world

vim hello.ts
console.log("hello world!")

运行

tsc hello.ts
node hello.js

或者合二为一

ts-node hello.ts

##docs

评论

h
hw_7864

⭐️ Admin快速开发: https://show.cool-admin.com/

赞 0
h
hw_7864

⭐️ 官方文档: https://cool-js.com

赞 0
h
hw_7864

⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld

赞 0