在TypeScript 中,我们使用接口(Interfaces)来定义对象的类型。 ... interface Person { name: string; age: number; } let tom: Person = { name: 'Tom', ...
確定! 回上一頁