map的类型转换 (map是键控集合keyed collections) 1、Map类型转换为数组类型 法一:用...rest运输符 const map = new Map([['name','Tom'],['age':18]]) const arr = [...map] 输出结果: 法二:用Array.form const map = new Map([[