数组:arr:[ {"aa":[{"num":"23"}]}, {"bb":[{"num":"43"}]}, {"cc":[{"num":"42"}]}, ] arr.forEach((value,i)=>{ //数组循环 for(var pl in value){ //数组对象遍历 console.log(pl); //获取key console.log(value[pl]) //获取key的值 } })