参考地址:
Javascript刷新页面的几种方法:
1 history.go(0)
2 location.reload()
3 location=location
4 location.assign(location)
5 document.execCommand('Refresh')
6 window.navigate(location)
7 location.replace(location)
1 history.go(0)
2 location.reload()
3 location=location
4 location.assign(location)
5 document.execCommand('Refresh')
6 window.navigate(location)
7 location.replace(location)
8 document.URL=location.href
补充
刷新清缓存,相当于Ctrl+F5:location.reload(true)
普通刷新:location.reload()
这次后台要求关闭弹窗以后要刷新页面好更新可用 剩余可兑换投资额
<
a
class
=
"close"
onclick
=
"
closePop
(
this
);
location
.
reload
()
"
>X</
a
>
在onclick里面加上
location
.
reload
()即可了
非要非要留到这么晚来测试,
测试
测试
测试
测试
测试
测试
测试T_T