【问题标题】:how to use bootstrap treeview with dynamic json in php如何在 php 中使用带有动态 json 的引导树视图
【发布时间】:2017-12-12 08:14:45
【问题描述】:
   var treeJSON = '';
    function getTreeJSON() {
        $.ajax({
            type: 'POST',
            url: 'controller.php',
            async: false,
            data: {
                param: "FunctionCore->FunctionCoreImpl->getTreeJSON()"
            },
            dataType: 'json',
            success: function (JSON) {
                treeJSON = JSON;
            }
        });
    }
    tree.treeview({
        levels: 1,
        color: "#428bca",
        data: treeJSON});

我可以从页面获取 json,但是 bootstrap-treeview 不起作用 首先,我想在 bootstrap-treeview 中使用动态 json。 其次,我不想刷新页面。 我能做什么?

【问题讨论】:

    标签: php bootstrap-treeview


    【解决方案1】:

    我得到了here 的答复。 我发现我不需要获取动态 json,我只需要重新加载 bootstrap-treeview。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-27
      • 2017-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-05
      • 1970-01-01
      • 2021-05-01
      相关资源
      最近更新 更多