修改成功,系统将在 3 秒后自动跳转,如果不想等待,直接点击 返回
js代码:
var timeID = 0, timeLeft = 3; function count() { timeLeft--; $('#second').text(timeLeft); if (timeLeft <= 0) { clearInterval(timeID); $('#second').text('0'); location.href = 'zhimajinrong.com'; return false; } } $(document).ready(function () { timeID = setInterval('count()', 1000); });