js如何遍历map集合
function iterator(){
var map={1:'a';2:"b":3:"c"};
for(key in map){
alert("key="+key+",value="+map[key]);
}
}
js如何遍历map集合
function iterator(){
var map={1:'a';2:"b":3:"c"};
for(key in map){
alert("key="+key+",value="+map[key]);
}
}