How can I refresh a page with jQuery?

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

How can I refresh a page with jQuery?

28条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 07:21

    I found

    window.location.href = "";
    

    or

    window.location.href = null;
    

    also makes a page refresh.

    This makes it very much easier to reload the page removing any hash. This is very nice when I am using AngularJS in the iOS simulator, so that I don't have to rerun the app.

提交回复
热议问题