interface Person { name: string age: number } type K = keyof Person // type K = "name" | "age". 進一步閱讀:. TypeScript 2.1 ...
確定! 回上一頁