Easyui tree方法扩展getImperfectCheck
$.extend($.fn.tree.methods, {
getImperfectCheck : function (jq) {
var checked = jq.find("span.tree-checkbox1");
var nodes = [];
for (var i = 0; i < checked.length; i++) {
var node = $(checked[i]).parent();
nodes.push(node.data('treeNode'));
var children = node.next('ul');
if (children.length > 0) {
i += children.find("span.tree-checkbox1").length;
}
}
return nodes;
}
});