<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
const data = [
{
name: '广东省',
id: 21,
children: [
{
name: '广州市',
id: 211
},
{
name: '深圳市',
id: 212,
children: [
{
name: '福田区',
id: 2121
}
]
},
{
name: '东莞市
树形结构数组对象扁平化
最新推荐文章于 2024-06-13 14:08:15 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)