How to clear setInterval function?
This question already has an answer here:
尝试这个:
var timer,
/* ... */,
api = {
/* ... */
off : function(){
/* ... */
clearInterval(timer);
},
/* ... */
blink : function(){
timer = setInterval(/* ... */);
}
};
/* ... */
链接地址: http://www.djcxy.com/p/46030.html
上一篇: 我怎样才能插入一个JavaScript值内的HTML代码?
下一篇: 如何清除setInterval函数?