|
@@ -31,18 +31,22 @@
|
|
|
<a href="javascript:history.go(-1)" class="go_back"></a>
|
|
|
</div>
|
|
|
<script>
|
|
|
- var i=5;
|
|
|
+ var i=3;
|
|
|
$(function(){
|
|
|
setTimeout(function(){
|
|
|
//如果再次进入此页面 不显示 缓存
|
|
|
window.location.href="javascript:history.go(-1)";
|
|
|
- },5000);//5秒后返回首页
|
|
|
+ },3000);//3秒后返回首页
|
|
|
after();
|
|
|
});
|
|
|
//自动刷新页面上的时间
|
|
|
function after(){
|
|
|
gobackHtml=""
|
|
|
- gobackHtml+='<a href="javascript:history.go(-1)" class="go_back">返回('+i+')</a>';
|
|
|
+ if (i==0){
|
|
|
+ gobackHtml+='<a href="javascript:history.go(-1)" class="go_back">返回</a>';
|
|
|
+ }else{
|
|
|
+ gobackHtml+='<a href="javascript:history.go(-1)" class="go_back">返回('+i+')</a>';
|
|
|
+ }
|
|
|
$(".go_back").empty().append(gobackHtml);
|
|
|
if(i>0){
|
|
|
i=i-1;
|