写一个-typescript-的-hello-world-代码
// 声明一个变量,值为字符串类型
let message: string = "Hello, World!";
// 输出变量的值
console.log(message);
编译成 JavaScript 后的代码:
var message = "Hello, World!";
console.log(message);
 
原文地址: https://www.cveoy.top/t/topic/qzn 著作权归作者所有。请勿转载和采集!