$().ready(function() {
 
var tree = $('#tree');
tree.jstree({ 'core': { data: null } });
 
$("#xreload").on("click", null, function(e) {
//e.preventDefault();
var url = $(this).attr("data-url"); //+ "?" + Math.random();
ajax.get(url, null, "json", function(json) {
tree.jstree(true).settings.core.data = json;
tree.jstree(true).refresh();
//console.debug("reloaded.");
});
});
 
});

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2021-07-14
  • 2022-02-23
  • 2022-12-23
  • 2021-11-14
  • 2021-08-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-11-14
相关资源
相似解决方案