首页 > 代码库 > 回退键刷新解决方案

回退键刷新解决方案

<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="每日预测">
<meta name="description" content="亿万大数据的足球精准预测">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" CONTENT="no-cache">
<script src="http://mz.caiqr.cn/libjs/lib/jquery-3.0.0.min.js"></script>
</head>

<body>
this is page A
<p id="atag">go to the page B!</p >
</body>
<script>
window.onload = function(){
alert("this page is be loaded!");
var open = function(){
setInterval(function(){
window.location.href=http://www.mamicode.com/window.location.href+"?"+Math.random();
},100);
window.location.href = "http://www.mamicode.com/b.html";
}
$(‘#atag‘).click(function(e){
open();
})
}
</script>
</html>

回退键刷新解决方案