markers = [];
markers[2]=3;
markers[3]=7;
for(var key in markers){
console.log( key )
console.log( markers[key] )
}

Related Posts: JavaScript循环遍历数组输出key value :

avatar