摘要: type str = string const hello: number | str = "Hello World!" console.log(`Say:${hello} Type:${typeof (hello)}`) 类型注释 //元组 let hero: [string, number] = 阅读全文
posted @ 2022-08-11 17:25 kueizheng 阅读(15) 评论(0) 推荐(0) 编辑