在jQuery写的树形中父节点没有复选框,而子节点有子子节点有
给点方法,谢谢
http://www.runoob.com/jeasyui/jeasyui-tree-tree4.html
easyui的checkbox配置为函数,自己判断下节点非父节点return true显示复选框,否则false不显示
checkbox boolean,function Defines if to show the checkbox before every node. If a function is specified, return true to show the checkbox.
Code example:
$('#tt').tree({
checkbox:function(node){
if (node.id == 11 || node.id == 122){
return true;
}
}
})