JS 三级格式数组转三级树
后台接口返回的数据格式:
var data = [
{sucode1:"1",sucode2:"01",sucode3:"001",subName1:"name1",subName2:"name2",subName3:"name3"},
{sucode1:"1",sucode2:"02",sucode3:"001",subName1:"name1",subName2:"name2",subName3:"name3"},
{sucode1:"1",su...
原创
2020-06-30 14:15:02 ·
1123 阅读 ·
0 评论