Jstree callback method when loading and loading completed -sunziren

 1, sometimes when using jstree we want to execute a method after it loaded at once, so we can use the following jstree own callback: 

      .on ( 'ready.jstree', function (Event, obj) { 
fun1 ();
});
2 , if you want to execute a method in the loading process , so we can use the following jstree own callback:
      .on('loaded.jstree', function(event, obj) {
fun2();
});
 

Guess you like

Origin www.cnblogs.com/sunziren/p/12169898.html