- 注册时间
- 2012-10-23
- 最后登录
- 2018-4-2
- 阅读权限
- 10
- 积分
- 94
- 精华
- 0
- 帖子
- 23
|
我写了一个Tree,也接收了后台返回的数据,后台数据有Url链接地址,怎么将那个Url绑定到tree上面,怎么实现点击一个node后,显示对应的页面?
后台数据结构如下:
var list = new List<Menu>
{
new Menu {MenuId = 1, MenuText = "数据", MenuPid = 0,Url = ""},
new Menu {MenuId = 2, MenuText = "安全数据服务", MenuPid = 1,Url = @"/SafeDataServer/Index"},
new Menu {MenuId = 3, MenuText = "报警查询", MenuPid = 2,Url = @""},
new Menu {MenuId = 11, MenuText = "操作查询", MenuPid = 2,Url = @"/SafeDataServer/ManageView"},
new Menu {MenuId = 1101, MenuText = "管理数据服务", MenuPid = 1,Url = ""},
new Menu {MenuId = 1102, MenuText = "事项查询", MenuPid = 1101,Url=""},
new Menu {MenuId = 1103, MenuText = "个人查询", MenuPid = 1101,Url = ""}
};
|
|