原生定时器可以做到,了解一下 当定时器到0了再跳var m = 4; // 几秒后跳转 自定义var timd =setInterval(function(){m--;if(m==0){clearInterval(timd); location.href="跳转的页面";}})