JQuery UI Tabs - Clear Cached Tab

后端 未结 1 735
长情又很酷
长情又很酷 2021-01-20 10:20

I have a set of JQuery UI tabs on a given page and have set the cache property to true for them to reduce the number of requests that are issued. I also have a select list

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-20 11:11

    When they click on a different item just use:

    $("#tabs .ui-tabs-nav a").removeData("cache.tabs");
    

    That will remove the cache for all the tabs and it will recache when they click on items.

    0 讨论(0)
提交回复
热议问题