jstree的contextmenu是怎么向后台传值的

开发小刘Man 发布于 2016/05/24 14:32
阅读 433
收藏 0

jstree的contextmenu插件默认的create、rename、delete不知道是怎么设置,往后台是怎么传值的??

var handleCartsTree2 = function (el,url) { $(el).jstree({ "core" : { "themes" : { "responsive": false }, // so that create works "check_callback" : true, 'data': { 'url': url, 'data' : function (node) { return { 'id' : node.id }; } } }, "types" : { "default" : { "icon" : "fa fa-folder icon-state-warning icon-lg" }, "file" : { "icon" : "fa fa-file icon-state-warning icon-lg" } }, "state" : { "key" : "demo2" }, "plugins" : [ "contextmenu", "dnd", "state", "types" ] });

加载中
返回顶部
顶部