<script src="/js/jquery-1.8.3.min.js"></script>
        <script>
            $(function () {
            var clo= setInterval(time, 1000);//一秒
        var count = 4;
            function time() {
                $("#time").text(count); //修改页面
                if (count == 0) {
                    clearInterval(clo);
                    window.location = "跳转页面";
                    return;
                }
                count--
            }
}); </script> <div style="text-align: center;"> <a >5</a>秒后自动跳转我的订单 </div>

   

$(function(){
function show(){
   alert("ready");
}
setInterval(show,3000);// 注意函数名没有引号和括弧!

// 使用setInterval("show()",3000);会报“缺少对象” 
});

  

相关文章:

  • 2021-05-21
  • 2021-12-01
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-01-29
猜你喜欢
  • 2021-09-21
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
相关资源
相似解决方案