SOURCE

var testList=[
    {
        "first":"first",
        "second":"second"
    },
    {
        "first":"ff",
        "second":"ss"
    }
]

var testMap={
    // testKey 为testMap的键String 的值
    "4":[
            {
                "first":"first",
                "second":"second"
            },
            {
                "first":"ff",
                "second":"ss"
            }
        ],
    "2":[
        {
            "first":"first2",
            "second":"second2"
        },
        {
            "first":"ff2",
            "second":"ss2"
        }
    ]

}

// for(var index in testMap){
//     var temp=testMap[index]
//     console.log(temp)
//     for(var index2 in temp){
//         console.log(temp[index2].first)
//     }
// }

var errorTypeToInfoMap = {
    "0": "优先级不是正整数",
    "1": "类目列表不是纯数字",
    "2": "sku列表不是纯数字",
    "3": "店铺列表不是纯数字",
    "4": "品牌列表不是纯数字",
    "5": "奖金比例超出范围",
}

console.log(errorTypeToInfoMap[0])
console 命令行工具 X clear

                    
>
console