JQuery/JS插件 jstree 创建节点

 

局部代码

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

 

posted @ 2020-03-03 11:11  古兴越  阅读(443)  评论(0编辑  收藏  举报