摘要: 1: any 和 unknown类型的区别 any可以避开类型检查, 比如 let notSure: any = 'XXXXX'; notSure.Hello(); unknown在使用时必须进行类型断言: let x: unknown = 'xxxxxx'; console.log((x as s 阅读全文
posted @ 2021-01-01 10:10 老胡Andy 阅读(98) 评论(0) 推荐(0)