let oP = new Map([['name'.'miniLau'], ['age', 20], ['height', 170]])let opObj = {}
oP.set('key'.'aa')
oP.set({},The '-');
oP.set(opObj,'77u');
letOp3 = op.get (opObj) // op.get ({})let op1 = oP.get('age'// map. prototype Check the attribute methods of the Map built-in function. // obj.keys()/obj.value()/obj.clear() etc.for(var I of oP){console.log(I){console.log(I)'name'.'minilau']。
}
for(var i of oP){
console.log(i[0] + ' '+ [1]) / / I get is the name of miniLau / / age 20 such six set of key-value pairs. }Copy the code