var stooges = [ { labe:1, value:1, placeCode:'sz' }, { labe:1, value:1, placeCode:'sh' } , { labe:1, value:1, placeCode:'sh' } ] //console.log(stooges) var maps = new Map([['sh','沪'],['sz','深']]); maps.forEach((c,key)=>{ console.log(key) }) stooges = stooges.map(e=>{ e.placeCode = maps.get(e.placeCode); //console.log(e) return e; }) console.log(stooges)