且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何删除jstree中所选节点的子节点?

更新时间:2023-02-05 20:13:17

正如@Redtopia正确指出的那样,jsTree没有最干净的API。

As @Redtopia correctly pointed out, jsTree does not have the cleanest API.

不幸的是,我认为解决方案必须是:

Unfortunately, I believe that the solution will have to be something like:

$("#tree").jstree("remove",data.rslt.obj.find('li'));