artDialog、Ztree初体验(4)
来源:未知 责任编辑:责任编辑 发表时间:2014-05-26 11:00 点击:次
},
async: {
enable: true,
url: "/DepartMent/GetJson/"
},
callback: {
onAsyncSuccess: zTreeOnAsyncSuccess
}
};
最后还有就是节点数据,因为是放到控制器中生成的,我把生成的格式给大家看下,如果文章看不懂的童鞋,可以去官网上看,都有DEMO的。
[{ id:1, pId:0, name:"手机", ename:"Mobile", open:true},
{ id:11, pId:1, name:"诺基亚", ename:"Nokia"},
{ id:111, pId:11, name:"C6(音乐版)", ename:"C6(Music)"},
{ id:112, pId:11, name:"X6(导航版)", ename:"X6(GPS)"},
{ id:113, pId:11, name:"5230(世博版)", ename:"5230(SB)"},
{ id:114, pId:11, name:"N97mini", ename:"N97mini"},
{ id:12, pId:1, name:"三星", ename:"Samsung"},
{ id:121, pId:12, name:"I9000(联通版)", ename:"I9000(Unicom)"},
{ id:122, pId:12, name:"I9000(移动版)", ename:"I9000(China Mobile)"},
{ id:123, pId:12, name:"Galaxy Naos", ename:"Galaxy Naos"},
{ id:124, pId:12, name:"Fascinate", ename:"Fascinate"},
{ id:13, pId:1, name:"索爱", ename:"Sony Ericsson"},
{ id:131, pId:13, name:"U1i(Satio)", ename:"U1i(Satio)"},
{ id:132, pId:13, name:"U5i(Vivaz)", ename:"U5i(Vivaz)"},
{ id:133, pId:13, name:"X10i", ename:"X10i"}]
这里就完成了整个操作了,誒,文笔不好,组织语言自然就不怎么样了,大家见谅。
摘自 LyIng.Net
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>