laravel從數(shù)據(jù)庫(kù)中取出來(lái)的數(shù)據(jù)如何封裝成jstree能夠讀取的模型?如果有能給個(gè)實(shí)例就好了……$("#tree_4").jstree({ core: { themes: { responsive: !1 }, check_callback: !0, data: { url: function (e) { return "{{ route('api.deparment') }}" }, data: function (e) { return { parent: e.id } } } }, types: { "default": { icon: "fa fa-folder icon-state-warning icon-lg" }, file: { icon: "fa fa-file icon-state-warning icon-lg" } }, state: { key: "demo3" }, plugins: ["dnd", "state", "types"]})
Laravel生成jstree的json數(shù)據(jù)
慕桂英3389331
2018-08-13 14:18:40