Jquery : Refresh/Reload the page on clicking a button

前端 未结 7 2241
独厮守ぢ
独厮守ぢ 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:06

    Use this line simply inside your head with

           window.location.reload(true);
    

    It will load your current page or view.

提交回复
热议问题