{nettypeL"4G",name:"CQT",temp:"测试项一"},
{nettypeL"4G",name:"CQT",temp:"测试项二"},
{nettypeL"4G",name:"CQT",temp:"测试项三"},
{nettypeL"4G",name:"CYZ",temp:"测试项一"},
{nettypeL"4G",name:"NEYT",temp:"测试项一"},
{nettypeL"4G",name:"NEYT",temp:"测试项二"},
{nettypeL"4G",name:"CC",temp:"测试项一"},
{nettypeL"5G",name:"CA",temp:"测试项一"},
{nettypeL"5G",name:"QQPO",temp:"测试项一"},
{nettypeL"5G",name:"NEYT",temp:"测试项一"},
{nettypeL"5G",name:"NEYT",temp:"测试项二"},
这种结构怎么转成
{
id:"root",
value: {name: "测试项“,level: 1},
children: [
{ id:"4G", value: {name: "4G“,level: 2},
children: [
{ id:"CQT", value: {name: "CQT“,level: 3}, children: [....], },
{...}
],
},
{ id:"5G", value: {name: "5G“,level: 2},
children: [
{ id:"CA", value: {name: "CA“,level: 3}, children: [....], },
{....}
],
}
],
},