fanqieo 5天前
移除数组中的指定数据

[{"$type":"flowable:FormEdit","value":"123"},{"$type":"flowable:Property","name":"用户","value":"1","label":"1111"},{"$type":"flowable:Property","name":"用户2","value":"2","label":"2222"},

{"$type":"flowable:FormEdit","value":"456"},{"$type":"flowable:Property","name":"用户3","value":"2","label":"3333"},

]

类似这样的结构,我想移除掉flowable:FormEdit 这个的要咋弄啊

array.filter(item => item.$type=="flowable:FormEdit" )

这样不行呢

...全文
180 点赞 收藏 3
写回复
3 条回复

还没有回复,快来抢沙发~

发动态
发帖子
JavaScript
创建于2007-09-28

5.1w+

社区成员

22.3w+

社区内容

Web 开发 JavaScript
社区公告
暂无公告