一用我们的页面跳转都使用,window.location.reload()。
但在firefox,opera这样不行,替代使用window.location.href=””;就可以了。
window.location.href有时候也有兼容性问题,现在比较保险的写法是window.location = “”;
另外用 <meta http-equiv=”refresh” content=”0;url=xxxx”>也可以
<html>
<head>
<meta http-equiv=”Content-type” content=”text/html; charset=utf-8″>
<meta http-equiv=”refresh” content=”0;url=xxxx”>
</head>
<body onload=”window.location=’xxxx’;”>
</body>
</html>
本文固定链接: http://www.ssqhm.com/329.html
暂无评论