📜  循环槽 javascript 数组关联 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:33.408000             🧑  作者: Mango

代码示例1
var months = [];
months["jan"] = "January";
months["feb"] = "February";
months["mar"] = "march";

for (var key in months) {
    var value = months[key];
    console.log(key, value);
}