版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/BobYuan888/article/details/83546590
将
window.location.reload();
替换为
if (!window.location.hash)
{
window.location.href = window.location.href;
}
else
{
window.location.reload();
}
参考自:http://www.dovov.com/window-location-href-window-location-hrefwindow-location-reload.html