intervalID =setInterval("getIsCookie()",1000); //开始任务 clearInterval(intervalID);//停止任务 转载于:https://www.cnblogs.com/qq376324789/p/10901295.html