验证码

比如预约的功能,验证码点击刷新,原先是使用window.location.reload()来实现的,但是在firefox,opera的浏览器下就无法运作,后来发现只要替代使用window.location.href=”";就可以了!

另外用 <meta http-equiv=”refresh” content=”0;url=all_topic.action”>也可以

<html>
<head>
<meta http-equiv=”Content-type”
content=”text/html; charset=utf-8″>
<meta http-equiv=”refresh”
content=”0;url=all_topic.action”>
</head>
<body
onload=”window.location.href=’all_topic.action’;”>
</body>
</html>

原文地址:https://www.cnblogs.com/timelesszhuang/p/3696144.html