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:
雷雷不写代码,给题主提供思路,循环判断数据类型,然后递归,应该不难