回发后Jstree失败了

时间:2012-10-22 11:43:23

标签: jquery asp.net-mvc-3 jstree

我正在使用Jstree在我的MVC3项目中生成树结构。

它在加载时工作正常,但是当发生回发/提交时,树将不会呈现。 它简单地以“正常”的Ul / li方式显示列表。

据我所知,Jstree normalle附加到Ul / Li的类在回发后没有附加。

我的Jquery就像这样..非常基本

jQuery(document).ready(function($) {
    $("#testTree").bind("loaded.jstree", function(event, data) {

    }).jstree({
        themes: {
            theme: "default",
            dots: false,
            icons: false
        },
        core: {
            animation: 200,
            open_parents: false
        },
        cookies: {
            cookie_options: {
                path: '/'
            }
        },
        plugins: ["themes", "html_data", "cookies"]
    });
});

似乎问题只发生在我的jquery.mobile 1.2(http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js“)上页。 如果我删除它,一切正常。

任何输入都将不胜感激

0 个答案:

没有答案
相关问题