会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小十六哇
博客园
首页
新随笔
联系
管理
订阅
2022年11月28日
将二维数组转化为一维数组
摘要: // 将二维数组转化为一维数组 let component_id=[[1,2],[3,4],[5,6]] const array = component_id.flat(Infinity); const obj = { component_id: Array.from(new Set(array))
阅读全文
posted @ 2022-11-28 21:48 小十六哇
阅读(194)
评论(0)
推荐(0)
编辑
公告