不断执行timer1=setInterval(方法名,500);(500毫秒)clearInterval(timer1);取消不断执行js 延迟执行setTimeout(function () { window.location.reload() }, 3000);