// 对象类型接口interface attrs<T, U>{ name: T; age: U}// 在声明变量的时候指明类型let obj: attrs<string,number> = { name: "lisi", age: 14}