使用图QL和REACT,如何按月将API划分?
例如,当有很多这样的数据时:
[
{title:"string" , data:"2022-05-01", amount:10},
{title:"string" , data:"2022-04-01", amount:10},
{title:"string" , data:"2022-03-03", amount:10},
{title:"string" , data:"2022-04-01", amount:10}
]
是否有一种方法可以有效地划分和管理数据? 我想使用过滤器进行每月列表并进行管理。 (对不起,我的英语不好)
For example, When there are a lot of data like this:
[
{title:"string" , data:"2022-05-01", amount:10},
{title:"string" , data:"2022-04-01", amount:10},
{title:"string" , data:"2022-03-03", amount:10},
{title:"string" , data:"2022-04-01", amount:10}
]
Is there a way to efficiently divide and manage the data every month?
I want to make a monthly list using a filter and manage it.
(sorry for my bad English)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我给你一个示例供您参考:
I give you an example for your reference: