jQuery easyUI的tree组件中check方法怎么用,FireBug中提示:TypeError: _112 is null,这是什么意思?

这是李炎恢的EasyUI课程, 有在学习的朋友吗
2025-05-09 00:14:06
推荐回答(3个)
回答1:

我觉得是这样的。你试试。

if (data) {
    $(_this).tree('expandAll');
    $(data).each(function (index, value) {
        if ($.inArray(value.text, auth) != -1) {
            $(_this).tree('check', value.target);
         }


        
    });
}

回答2:

在执行value.target的时候没有获取到value的值,导致null,检查一下value是否存在

回答3:

$(_this).combotree('tree').tree('check',value.target);