局部代码
var instance = $('#jstreeModule').jstree(true);//获取jstree对象 var obj = instance.create_node(selObj, data, 'last', function () { layer.close(index);//节点创建成功后 才能关闭弹窗 });
api:
https://www.jstree.com/api/#/?f=create_node([par,%20node,%20pos,%20callback,%20is_loaded])
来源:https://www.cnblogs.com/guxingy/p/12401166.html