How to update jstree node values without reload

前端 未结 6 2070
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 07:11

I have a jstree that I created with the following code:

$(\'#mytree\').jstree({\"core\": { \"data\" : value
                             , \"themes\" : { \"dots\         


        
6条回答
  •  伪装坚强ぢ
    2021-02-07 07:53

    for deleting the node and reload tree

     $('#mytree').jstree(true).refresh();
    

    for those who need to redraw without restart the tree use

    jQuery('#data').jstree(true).refresh(true);
    

提交回复
热议问题