js定时器

var intervalId;//全局变量


clearInterval(intervalId);
intervalId=setInterval(getABC,1000*5);

function getABC(){
.......
}
原文地址:https://www.cnblogs.com/penghq/p/10826492.html