慕后端5472875
2020-06-11 16:49
[{
"regionName": "广州市",
"shortName": "广州",
"select": true,
"open": false,
"levelCode": "city",
"regionCode": "440100000000",
"regionList": [{
"levelCode": "area",
"regionCode": "440103000000",
"regionList": [{
"levelCode": "town",
"regionCode": "440103001000",
"regionList": [{
"levelCode": "village",
"regionCode": "440103001001",
"regionList": [],
"regionName": "翠洲社区",
"shortName": "翠洲社区",
"select": true,
"open": false
}],
"regionName": "沙面街道",
"shortName": "沙面街道",
"select": true,
"open": false
},{
"levelCode": "town",
"regionCode": "440103002000",
"regionList": [{
"levelCode": "village",
"regionCode": "440103002021",
"regionList": [],
"regionName": "扬仁西社区",
"shortName": "扬仁西社区",
"select": true,
"open": false
}],
"regionName": "岭南街道",
"shortName": "岭南街道",
"select": true,
"open": false
}],
"regionName": "荔湾区",
"shortName": "荔湾区",
"select": true,
"open": false
}]
}]
用for循环搭配递归
React16.4 快速上手
40002 学习 · 134 问题
相似问题