TypeScript学习笔记一:安装和编译

安装

npm install -g typescript

查看版本号

tsc -v

测试编译

新建一个main.ts文件

var message:string = "Hello World" 
console.log(message)

编译

tsc main

编译完后
在这里插入图片描述

发布了142 篇原创文章 · 获赞 20 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_35958891/article/details/104434012