How can I refresh a page with jQuery?

后端 未结 28 2463
刺人心
刺人心 2020-11-22 07:00

How can I refresh a page with jQuery?

28条回答
  •  清酒与你
    2020-11-22 07:35

    There are many ways to reload the current pages, but somehow using those approaches you can see page updated but not with few cache values will be there, so overcome that issue or if you wish to make hard requests then use the below code.

        location.reload(true);
        //Here, it will make a hard request or reload the current page and clear the cache as well.
    
    
        location.reload(false); OR location.reload();
        //It can be reload the page with cache
    

提交回复
热议问题