interface Foo { [key: string]: Bar; } let foo:Foo = {};. 这里的键是 string 和值是 Bar 。 更多. 您可以使用ES6 Map ...
確定! 回上一頁