摘要: 索引:对象或数组的对应位置的名字 数组的索引就是 number 类型的 0,1,2,3... 对象的索引就是 string 类型的属性名 数字索引签名:通过定义接口用来约束数组 type numberIndex{ [index:number]:string } const testArray:num 阅读全文
posted @ 2022-05-19 10:14 Yune_Neko 阅读(2431) 评论(0) 推荐(0) 编辑