How can I refresh a page with jQuery?

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

How can I refresh a page with jQuery?

28条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 07:29

    You may want to use

    location.reload(forceGet)
    

    forceGet is a boolean and optional.

    The default is false which reloads the page from the cache.

    Set this parameter to true if you want to force the browser to get the page from the server to get rid of the cache as well.

    Or just

    location.reload()
    

    if you want quick and easy with caching.

提交回复
热议问题