码迷,mamicode.com
首页 > 其他好文 > 详细

ztree中依据后台中传过来的node的id,将这个node的复选框置为不可用

时间:2016-02-03 19:09:04      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:

var treeObj = $.fn.zTree.getZTreeObj("treeDemo");//树对象

var node = treeObj.getNodeByParam("id",${id});
node.nocheck=true;
treeObj.updateNode(node);//一定要更新树。否则没效果

ztree中依据后台中传过来的node的id,将这个node的复选框置为不可用

标签:

原文地址:http://www.cnblogs.com/gcczhongduan/p/5180329.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!