Loading

easyui中tree树默认展开第一个根节点

onLoadSuccess:function(){

    //缩起所有
    $(this).tree('collapseAll');
    // 获取根节点
    var root =$(this).tree('getRoot').target
    //展开根节点     

$(this).tree('expand',root.target);
 } 

 

posted @ 2020-05-27 09:26  青岑  阅读(1613)  评论(0编辑  收藏  举报