Jquery : Refresh/Reload the page on clicking a button

前端 未结 7 2111
独厮守ぢ
独厮守ぢ 2021-01-30 10:51

I have a button which loads after a ajax call , on clicking i want to reload the page (like i press f5)

I tried

$( \".delegate_update_success\" ).click         


        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 11:20

    You should use the location.reload(true), which will release the cache for that specific page and force the page to load as a NEW page.

    The true parameter forces the page to release it's cache.

提交回复
热议问题