2024年2月5日
摘要: 1、推断类型 const nameInfo: string = 'Hello world' console.log('nameInfo', nameInfo) 2、定义类型 interface nameType { name: string; age: number; } const peopleI 阅读全文
posted @ 2024-02-05 16:39 二两余晖 阅读(1) 评论(0) 推荐(0) 编辑