{data=[{id=1, sex=1, level=1, name=1, you=1}, {id=2, sex=2, level=1, name=2, you=2}, {id=3, sex=3, level=1, name=3, you=3}, {id=4, sex=4, level=2, name=4, you=4}, {id=5, sex=5, level=2, name=5, you=5}, {id=6, sex=6, level=2, name=6, you=6}]}
这是后台取的值
该怎么用easyui让其树柱状显示?(附:我现在的前端代码)
$('#tt').treegrid({
url: ctp+"/gcgl/corp/experimentlist.do",
idField:'id',
treeField:'level',
columns:[[
{title:'分类',field:'level',width:180},
{field:'you',title:'年龄',width:60,align:'right'},
{field:'sex',title:'性别',width:80},
{field:'name',title:'姓名',width:80}
]]
});
参考官方api
咳咳这就是API上的