这种方式被redux 的文档推荐,同时兼容normalized (又名扁平化)形式。 现在你可以在迭代的时候访问id:. Object.values(categories).map(cat => ({id: cat.id, ...
確定! 回上一頁