Today, my buddy of Android and IOS told me that the data structure given to him is very difficult to implement. I"m a little confused! Why this kind of data structure is so difficult to achieve this style layout, I hope Android, IOS god to answer!
< H1 > this is the front-end style < / H1 >< H1 > this is the data structure I gave < / H1 >
{
"status":1,
"msg":"",
"data":[
{
"id":1,
"name":"",
"son":[
{
"id":1,
"name":"",
"cate_id":1
},
{
"id":2,
"name":"",
"cate_id":1
},
{
"id":3,
"name":"",
"cate_id":1
},
{
"id":4,
"name":"",
"cate_id":1
},
{
"id":5,
"name":"",
"cate_id":1
},
{
"id":6,
"name":"",
"cate_id":1
}
]
},
{
"id":2,
"name":"",
"son":[
{
"id":7,
"name":"",
"cate_id":2
}
]
},
{
"id":3,
"name":"",
"son":[
{
"id":8,
"name":"",
"cate_id":3
},
{
"id":9,
"name":"",
"cate_id":3
}
]
},
{
"id":4,
"name":"",
"son":[
{
"id":10,
"name":"",
"cate_id":4
},
{
"id":11,
"name":"",
"cate_id":4
},
{
"id":12,
"name":"",
"cate_id":4
},
{
"id":13,
"name":"",
"cate_id":4
}
]
}
]
}