JS解析JSON多层嵌套的数据集var x = { "monthFactoryWaitingRateDataList": , "days": , "dayStrs": }, { "factory": "HZC02", "dayFactoryWaitingRateList": , "days": , "dayStrs": } ]};//var data1 = x.monthFactoryWaitingRateDataListvar data0 = Object.keys(x)var data1 = Object.values(x)var data2 = Object.keys(Object.values(x))var data3 = Object.keys(Object.values(x))let column = ;column.push(data2);let content = ;// for (let i=0; i< data1.dayFactoryWaitingRateList.length;i++){ for (let j =0 ; j<Object.values(Object.values(x)).length;j++){let contentLine = ;content.push(Object.values(Object.values(x)),Object.values(Object.values(x)),Object.values(Object.values(x)),Object.values(Object.values(x)));//var zd1 = Object.keys(Object.values(x)).slice(0,);}for (let values of $data.result){ var contentLine = ; content.push(Object.values(values))}//content.push(data1.dayFactoryWaitingRateList)//let column = ;//for (let i=0; i< data1.dayFactoryWaitingRateList.length;i++){//column.push(`col${i + 1}`);//}//result = {}//result.column = column;//result.content = content;// return result;//console.log(result);//console.log(Object.values(Object.values(x)).length);console.log(content);