关于异步加载
ztree吧
全部回复
仅看楼主
level 1
m0925j 楼主
var setting = { check: { enable: true }, async: { enable: true, type : "post", url: "/jyw/sysadmin/index.php?r=administrativedivision/getSubordinate", autoParam: ["id"] } };
我这样设置了,但是点击节点的链接没有反应,通过firebugs看没有发出请求,请问是怎么回事。。
2012年08月24日 03点08分 1
level 11
异步加载不是点击节点链接触发的,而是点击 +/- 号触发的, 如果希望点击节点就异步加载,那么请参考Demo:http://www.ztree.me/v3/demo.php#_502
2012年08月24日 13点08分 2
level 1
m0925j 楼主
点击+号请求到服务器端的方法了,这是返回的数据,但是页面上没有显示出子节点来。。还需要做些什么啊。。[{"id":"130100","pId":"130000","name":"\u77f3\u5bb6\u5e84\u5e02","isParent":true},{"id":"130200","pId":"130000","name":"\u5510\u5c71\u5e02","isParent":true},{"id":"130300","pId":"130000","name":"\u79e6\u7687\u5c9b\u5e02","isParent":true},{"id":"130400","pId":"130000","name":"\u90af\u90f8\u5e02","isParent":true},{"id":"130500","pId":"130000","name":"\u90a2\u53f0\u5e02","isParent":true},{"id":"130600","pId":"130000","name":"\u4fdd\u5b9a\u5e02","isParent":true},{"id":"130700","pId":"130000","name":"\u5f20\u5bb6\u53e3\u5e02","isParent":true},{"id":"130800","pId":"130000","name":"\u627f\u5fb7\u5e02","isParent":true},{"id":"130900","pId":"130000","name":"\u6ca7\u5dde\u5e02","isParent":true},{"id":"131000","pId":"130000","name":"\u5eca\u574a\u5e02","isParent":true},{"id":"131100","pId":"130000","name":"\u8861\u6c34\u5e02","isParent":true}]
2012年08月25日 02点08分 3
level 1
m0925j 楼主
好吧,知道了。。方法里不能return,要直接echo。。
2012年08月25日 02点08分 4
echo是什么意思...我也遇到同样的问题...上网查一下午了...[汗]
2012年08月27日 09点08分
回复 许下丶 : 在js 中就是 console.log
2012年08月27日 12点08分
1