0
谁在那里知道JsTree jQuery插件呢?JsTree删除并创建文件夹?
我已经实现了它,并获得了大多数基本功能的正常工作,但现在我希望能够使用该功能来移除和创建新文件夹。我无法在文档中找到有关如何执行此操作的信息。
下面是我如何使用它现在: $( “#divLeftPane”) .bind( “reselect.jstree”,函数(){
if ($(".jstree-clicked").length == 0)
url = "";
else
url = "?url=" + $(".jstree-clicked").attr("rel");
loadFiles(url);
$("#currentDir").val($(".jstree-clicked").attr("rel"));
$("a").click(function() {
url = "?url=" + $(this).attr("rel");
loadFiles(url);
$("#currentDir").val($(this).attr("rel"));
});
}).jstree({
"html_data": {
"ajax": {
"url": "/Customers/Directories/"
}
},
"ui": {
"select_limit": 2,
"select_multiple_modifier": "alt",
"selected_parent_close": "select_parent"//,
// "initially_select": ["phtml_2"]
},
"themes": {
"theme": "classic",
"dots": false,
"icons": true
},
"plugins": ["themes", "html_data", "ui", "cookies"]
});
};