jquery easyui tree控件复选框选择处理
------上级状态改变(勾选或取消勾选),所有下级状态跟着改变 ,在tree控件的onCheck事件中实现--------- cascadeCheck: false,//默认为true表示上下级勾选联动,false表示取消联动 onCheck: function (node, checked) { var childList = $(this).tree('getChildren', node.target); if (childList.length == 0) return; var checkedTrue = function () { childList.map(function (currentValue) { var objTrue = $("div[id='" + currentValue.domId + "']").find(".tree-checkbox"); if (objTrue != null && objTrue != undefined) { var classTrue = objTrue.attr("class"); if (classTrue == "tree-checkbox tree-checkbox0") objTrue.removeClass("tree-checkbox tree-checkbox0").addClass("tree