强制重新加载页面

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了强制重新加载页面相关的知识,希望对你有一定的参考价值。

  1. // This will forcefully reload the current page. No jQuery needed here.
  2.  
  3. location.reload(true);
  4.  
  5. // If your content might be cached by proxy servers and your URL has no query string, try this:
  6.  
  7. location.replace(
  8. location.href.replace(/?.*$/, '') + '?' + Math.random());

以上是关于强制重新加载页面的主要内容,如果未能解决你的问题,请参考以下文章