Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.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/linux/27.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
Types Jstree集合类型_Types_Set_Bind_Jstree - Fatal编程技术网

Types Jstree集合类型

Types Jstree集合类型,types,set,bind,jstree,Types,Set,Bind,Jstree,我将set_type方法绑定到我的jstree实例,然后在单击按钮时调用set_type方法。这是我的密码: $("#treeDiv").jstree({..}).bind("set_type.jstree", function(e, data) { $.post( "./classes/jstree/_demo/server.php", { "operation"

我将set_type方法绑定到我的jstree实例,然后在单击按钮时调用set_type方法。这是我的密码:

$("#treeDiv").jstree({..}).bind("set_type.jstree", function(e, data) {
            $.post(
                "./classes/jstree/_demo/server.php", 
                {
                    "operation" : "set_type", 
                    "id" : data.rslt.obj.attr("id").replace("node_",""),
                    "type" : data.rslt.obj.attr("type")
                }, 
                function (r) {
                    if(!r.status) {
                        $.jstree.rollback(data.rlbk);
                    }
                }
            );
        });


$("#settype").click(function() {
    $("#treeDiv").jstree("set_type", "block", "#node_663");
});

图标的类型会更改,但类型值在db中不会更改。我做错了什么?

解决了这个问题。我发现class.tree.php没有更新数据库中类型的方法。

解决了这个问题。我发现class.tree.php没有更新数据库中类型的方法