map数据转数组(简单记录) methods: const newArr = [] for(const key in map){ const jsonTemp = {} jsonTemp.D_dictName = map[key] jsonTemp.D_dictId = key newArr.push(jsonTemp) } console.log(newArr,'map数据转arr')