//map // 创建一个set new Set(); //没有重复的 let map = new Map(); console.log(map); map.set("zhang",123); console.log(map.get('zhang')); let foods = []; let name =''; let chef = {}; map.set(foods,['面包','起司']); map.set(chef,{zhang:'zhang',kai:'kai'}); map.set(name,'张凯翔'); map.forEach(function(key,value,mapObj){ console.log(key); console.log(value); console.log(mapObj); });