点击运行
var val:string|number val = 12 console.log("数字为 "+ val) val = "Jiyik" console.log("字符串为 " + val)
运行结果 :
正在执行...