Map 是映射
Map 和对象键值对的集合
键 ----->值,key--->value
const person={ name:'alex', age:18 }
使用Map 添加成员
const m=new Map();
m.set('name','alex')
Map 是映射
Map 和对象键值对的集合
键 ----->值,key--->value
const person={ name:'alex', age:18 }
使用Map 添加成员
const m=new Map();
m.set('name','alex')