我需要更改什么才能使我的代码从 Jstree 1.0-rc3 移动到 Jstree 3.3.5
What do I need to change for my code to move from Jstree 1.0-rc3 to Jstree 3.3.5
我需要向我的网站添加一些新的 jstree 功能,我发现我使用的是一个非常旧的版本,所以我将 jstree.js 替换为最新版本,现在使用 jstree 的现有页面未呈现为jstree
这是我网页上的 jstree javascript,谁能帮我看看为什么它不能与最新版本的 jstree 一起使用。 (我没改JQuery,还在用1.92)
我必须承认我不记得这是如何工作的。
<script type="text/javascript" class="source below">
$(function () {
$("#songchanges").jstree({
"plugins" : ["themes","html_data","ui","cookie"],
"core" : { "initially_open" : [ "phtml_1" ] }
})
.bind("loaded.jstree", function (event, data) {
})
.bind("select_node.jstree", function (e, data) {
var href = data.rslt.obj.children("a").attr("href");
if(href!="#"){
top.frames["main"].location = href; }
else {
$(this).jstree('toggle_node', data.rslt.obj[0]);
}
})
;
});
</script>
问题是我更新了代码以使用最新版本的 jstree.ks 但仍在使用旧版本的 jstree 主题,该主题不适用于最新的 jstree.js
我需要向我的网站添加一些新的 jstree 功能,我发现我使用的是一个非常旧的版本,所以我将 jstree.js 替换为最新版本,现在使用 jstree 的现有页面未呈现为jstree
这是我网页上的 jstree javascript,谁能帮我看看为什么它不能与最新版本的 jstree 一起使用。 (我没改JQuery,还在用1.92)
我必须承认我不记得这是如何工作的。
<script type="text/javascript" class="source below">
$(function () {
$("#songchanges").jstree({
"plugins" : ["themes","html_data","ui","cookie"],
"core" : { "initially_open" : [ "phtml_1" ] }
})
.bind("loaded.jstree", function (event, data) {
})
.bind("select_node.jstree", function (e, data) {
var href = data.rslt.obj.children("a").attr("href");
if(href!="#"){
top.frames["main"].location = href; }
else {
$(this).jstree('toggle_node', data.rslt.obj[0]);
}
})
;
});
</script>
问题是我更新了代码以使用最新版本的 jstree.ks 但仍在使用旧版本的 jstree 主题,该主题不适用于最新的 jstree.js