- 注册时间
- 2014-11-20
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 161
- 精华
- 0
- 帖子
- 45

|
{
"name":2017,
"id":2,
"time":null,
"level":1,
"userId":0,
"isVisable":4,
"regionVOs":[{
"name":"华南地区",
"id":4,
"time":1427680603000,
"year":2,
"level":2,
"userId":104,
"regionId":2,
"isVisable":3,
"schoolVOs":[{
"name":"中山大学",
"id":2,
"time":1427354348000,
"level":3,
"userId":104,
"regionId":2,
"isVisable":4,
}]}]
后台传过来的json内容大概就是上面的样子,因为查寻的是多张表,所以id不是唯一的,这种情况,可以用树形结构显示出来么?如果可以的话,前台应该怎么写?
我的前台是<div id="tree1" class="mini-tree" style="width:100%;height:100%"
url="nonProducts/query" showTreeIcon="true" textField="name" idField="id" value="level" expandOnNodeClick="true"></div> 这样写的
显示结果是这样的。。。
|
|