1、TypeScript中的keyof操作符,是将一个类型映射为它所有成员名称的联合类型。 ... class Student { constructor(private info: Person) {} getInfo(key: string) ...
確定! 回上一頁