87,923
社区成员
发帖
与我相关
我的任务
分享
onBeforeCheck:function(node, checked){
var _this = $(this);
_this.tree('getChecked').each(function(i,k){
_this.tree('uncheck',k.target);
})
}
//以上纯属现从API参考而写的答案.看了下api,还有个onCheck方法,如果不行,换成它吧,但要增加一行代码,就是楼上的再选中节点的代码
//api地址:http://www.jeasyui.com/documentation/tree.php