1. 安装
npm i -g ts-node
2. 在终端使用(实际上也是执行了tsc hello.ts以及node hello.js)
ts-node hello.ts
使用ts-node运行ts文件
最新推荐文章于 2024-04-25 19:29:47 发布
1. 安装
npm i -g ts-node
2. 在终端使用(实际上也是执行了tsc hello.ts以及node hello.js)
ts-node hello.ts