1
|
Anonymous Creator · 技术社区 · 5 年前 |
![]() |
1
1
问题是你给的类型
你几乎肯定想要
Playground link to pared-down code showing the issue . Playground link to example fix .
基本上,TypeScript允许您定义具有特定内容的数组类型。例如:
|