TypeScript 将允许访问类型对象的任何属性, Record<any, any> 即使特定键未知,因为第一个通用参数是 any 。 let a: Record<any, any>; a.foo; ...
確定! 回上一頁