Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/410.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 创建\u节点事件触发父节点上的打开\u节点事件_Javascript_Jquery_Jstree - Fatal编程技术网

Javascript 创建\u节点事件触发父节点上的打开\u节点事件

Javascript 创建\u节点事件触发父节点上的打开\u节点事件,javascript,jquery,jstree,Javascript,Jquery,Jstree,我不希望在创建子节点时触发打开节点事件。这是我的实现 $(function () { $("#tree").jstree({ "json_data" : { "data" : [ { data : "/", attr : { "id" : "root"}, state : "closed", "children" :

我不希望在创建子节点时触发打开节点事件。这是我的实现

$(function () {
$("#tree").jstree({ 
    "json_data" : {
        "data" : [
            { 
                data : "/", 
                attr : { "id" : "root"},
                state : "closed",
                "children" : [ { "data" : "child1",
                                "attr" : { "id" : "child1.id" },
                                "children" : [ ] }
                             ]
            },
        ]
    },
    "plugins" : [ "themes", "json_data", "crrm", "ui" ]
})
.bind("select_node.jstree",function(event, data) { $("#tree").jstree("create",.... });
.bind("open_node.jstree",function(event,data){ . . . });
选择节点时创建节点会触发我不想要的事件打开节点。打开节点事件对我有不同的功能。是否有人可以在不触发open_node事件的情况下帮助添加节点