【发布时间】:2020-07-31 17:02:19
【问题描述】:
我是打字稿的新手,不知道如何实现多图。我有如下代码。我需要遍历 itemArray 并根据日期存储 Item。我需要使用日期作为多图的关键。如何在不使用任何外部库的情况下实现这一点?
interface Item {
id: number;
date: string;
}
interface Details{
itemArray: Item[]
}
【问题讨论】:
标签: reactjs typescript multimap