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);

});

上一篇:Java面试前的敲门砖:多线程+微服务spring源码,spring入门教程


下一篇:C++中遍历读取数组中的元素