一般在分配权限的时候,编辑的时候需要让combotree回显。以下代码只是个人备份的,供参考。
$('#XXX').combotree({url : '',required : true,lines : true,multiple : true,checkbox : true,onlyLeafCheck : true,onLoadSuccess : funciton(node,data){var _this = this;if(data){$(data).each(function(index,value){if($.inArray(value.text,auth)!=-1){$(_this).tree('check',value.target);}if(this.state=='closed'){$(_this).tree('expandAll'); } });}}
});