我觉得是这样的。你试试。
if (data) {
$(_this).tree('expandAll');
$(data).each(function (index, value) {
if ($.inArray(value.text, auth) != -1) {
$(_this).tree('check', value.target);
}
});
}
在执行value.target的时候没有获取到value的值,导致null,检查一下value是否存在
$(_this).combotree('tree').tree('check',value.target);