zTree API中刷新树没效果

想刷新树,但是根据API来的refresh无效

----------------------------------------------------------------------------------------------------------

 

https://bbs.csdn.net/topics/391881528

这个博客的作者的三个尝试都是根据API来的,都是无效的,比如refresh

----------------------------------------------------------------------------------------------------------

 

建议直接用init重新初始化,亲测有用

https://tieba.baidu.com/p/3558214738?red_tag=2739316990

 

 

----------------------------------------------------------------------------------------------------------

var treeObj = $.fn.zTree.init($("#treeAdmin"), setting);

$('body').on('click', '.list-table .handle .edit', function() {
$mask.show();
$editpopup.show();
//刷新树
treeObj = $.fn.zTree.init($("#treeAdmin"), setting);

});

posted @ 2018-08-04 18:51  WhoKnows1  阅读(400)  评论(0编辑  收藏  举报