为什么使用treeObj.getCheckedNodes()方法得到值为object?
ztree吧
全部回复
仅看楼主
level 1
pascalkk 楼主
var treeObj = $.fn.zTree.getZTreeObj("treeX");
var nodes = treeObj.getCheckedNodes(true);
alert("nodes"+nodes);
<br/>
此时弹出的值为:nodes[object Object],[object Object],[object Object],[object Object].
API上不是说
返回全部符合要求的节点** Array么?
那些个object就是json数据?我处理不来。。。
2012年11月22日 08点11分 1
level 11
1、去网上搜索一下 什么是 json 数据吧, 自己做做练习;
2、用浏览器调试建议用 chrome ,同时使用 console.log 进行调试,少用 alert吧
2012年11月22日 13点11分 2
level 1
楼主你的ztree 获取所选的节点为object怎么解决的
2015年12月15日 07点12分 3
1