create_node事件触发父节点上的open_node事件

时间:2013-09-23 21:46:14

标签: javascript jquery jstree

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

$(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。 open_node事件对我来说有不同的功能。任何人都可以帮助添加节点而不触发open_node事件吗?

0 个答案:

没有答案
相关问题