我有个json 里面有:[{
text:'检验标准分类表',
expanded: true,
children:[{
text:'检验标准管理',
id:'book-manage',
leaf:true
}]
},{
text:'卫生标准分类表',
expanded: true,
children:[{
text:'卫生标准管理',
id:'company-manage',
leaf:true
}]}]
我怎么做把他做成树
text:'检验标准分类表',
expanded: true,
children:[{
text:'检验标准管理',
id:'book-manage',
leaf:true
}]
},{
text:'卫生标准分类表',
expanded: true,
children:[{
text:'卫生标准管理',
id:'company-manage',
leaf:true
}]}]
我怎么做把他做成树
EXT?DWR?JQUERY?或者自己写JAVASCRIPT生成树?
如果是EXT直接把这个数据丢给一个TREELOADER就可以啦。