var response = {
"msg": "success",
"code": 200,
"data": {
"total": 328880,
"ipInfo": [
{
"count": 3155,
"key": "315.230.145.246",
"subList": [
{
"count": 3154,
"key": "8058230"
},
{
"count": 1,
"key": "713467"
}
]
},
{
"count": 3454645,
"key": "215.230.145.246",
"subList": [
{
"count": 6154,
"key": "8058240"
},
{
"count": 1124,
"key": "1155530"
}
]
}
]
}
}
像這種,我需要循環遍歷拼接字串放到頁面上,怎麼做? ? ?本人菜鳥萌新。
雷雷
Vue:
雷雷不寫程式碼,提供題主思路,循環判斷資料類型,然後遞歸,應該不難