SOURCE

let m = new Map() 
var key = {
    school:"atguigu"
}
m.set('name',"hsy")
m.set(key,['北京','上海'])
console.log(m.get('name'))  //hsy
console.log(m.get(key))     //['北京','上海']

for(var v of m){//每个 v 都是数组
    console.log(v)
}


// 必须是双层数组 ,子数组必须是长度为2
const map = new Map([
  ['name', '张三'],
  ['title', 'Author']
]);
console.log(map)
console 命令行工具 X clear

                    
>
console