$.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;
}
});
Easyui tree方法扩展getImperfectCheck
最新推荐文章于 2024-08-19 15:26:06 发布