How can I refresh a page with jQuery?

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

How can I refresh a page with jQuery?

28条回答
  •  长情又很酷
    2020-11-22 07:39

    The question should be,

    How to refresh a page with JavaScript

    window.location.href = window.location.href; //This is a possibility
    window.location.reload(); //Another possiblity
    history.go(0); //And another
    

    You're spoiled for choice.

提交回复
热议问题