//从一个总的行政区里面将所有行政区平铺
let districtCode = [
{
"id": 1,
"code": "350400",
"name": "三明市",
"grade": "city",
"orderNo": 1,
"parentCode": null,
"children": [
{
"id": 8,
"code": "350426",
"name": "尤溪县",
"grade": "county",
"orderNo": 7,
"parentCode": "350400",
"children": []
},
{
"id": 12,
"code": "350430",
"name": "建宁县",
"grade": "county",
"orderNo": 11,
"parentCode": "350400",
"children": []
},
{
"id": 11,
"co
关于flatMap的用法
最新推荐文章于 2024-06-25 10:18:13 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)