效果:
let jsonDatas = [
{
name: "一级1",
children: [
{
name: "二级1-1",
children: [
{
name: "三级1-1-1",
children: [
{
name: "四级1-1-1-1",
}
]
}
]
},
{
name: "二级1-2"
},
{
name: "二级1-3"
}
]
},
{
name: "一级2",
children: [