Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/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
Javascript 如何仅在重新排序时使用jstree v3插件_Javascript_Jquery_Jstree_Jstree Dnd - Fatal编程技术网

Javascript 如何仅在重新排序时使用jstree v3插件

Javascript 如何仅在重新排序时使用jstree v3插件,javascript,jquery,jstree,jstree-dnd,Javascript,Jquery,Jstree,Jstree Dnd,我正在使用JStreeV3.0.8() 如何仅在使用像at V1()这样的dnd插件时重新排序使用如下检查回调选项: "check_callback" : function (op, node, par, pos, more) { if(more && more.dnd) { return more.pos !== "i" && par.id == node.parent; } return true; }, 下面是一个演

我正在使用JStreeV3.0.8()


如何仅在使用像at V1()这样的dnd插件时重新排序使用如下
检查回调
选项:

"check_callback" : function (op, node, par, pos, more) {
    if(more && more.dnd) {
        return more.pos !== "i" && par.id == node.parent;
    }
    return true;
},
下面是一个演示:

效果非常好+1.许多人仍然受到CRRM示例的影响…不幸的是。。。