标签:
<script src="/js/jquery-1.8.3.min.js"></script> <script> $(function () { setInterval(time, 1000);//一秒 }); var count = 4; function time() { $("#time").text(count); //修改页面 if (count == 0) { clearInterval(); window.location = "跳转页面"; return; } count-- } </script> <div style="text-align: center;"> <a id="time" style="color: red">5</a>秒后自动跳转我的订单 </div>
标签:
原文地址:http://www.cnblogs.com/LoveTX/p/4210576.html