摘要:
泛型 类的泛型 // 类型断言 as 可以转为想要的类型 let name5 : string | number // = 3 (name5 as string).toLocaleLowerCase(); (name5 as number).toFixed(); 接口 阅读全文
摘要:
export {} let name: number = 10 console.log(name) let person: Array<number> = [10] console.log(person) let age:[number, string] = [10, '99'] // 枚举 enu 阅读全文