血翼残飞

导航

2020年11月25日 #

Map,Set,Array,Object之间的相互转换

摘要: 1,Object转Map let arr={foo:'hello',bar:100}; let map=new Map(Object.entries(arr)); console.log(map) 2,Map转Object let map=new Map([['foo','hello'],['bar 阅读全文

posted @ 2020-11-25 16:04 血翼残飞 阅读(476) 评论(0) 推荐(0) 编辑