基本上,我想做的是,我想将树结构中属于同一类别的内容显示为子父节点而不是文件夹结构。
最佳答案
在 https://github.com/vakata/jstree/issues/1101 上找到了解决方案
(function ($, undefined) {
"use strict";
$.jstree.plugins.noclose = function () {
this.close_node = $.noop;
};
})(jQuery);
$('#tree').jstree({
plugins : ["noclose", ... ],
...
});
关于javascript - 如何禁用 jstree 插件中的折叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45789862/