- setInterval
- setInterval(funcName, delay)
- Repeat until manually break.
- var object = $('article:not(.reveal)');
var i = 0;
setInterval(function(){
if( i >= object.length ) return false;
alert('Hi');
i++;
}, 200); - setTimeout
- setTimeout(func, delay)
- Run only once.
- setTimeout(function(){
that.removeClass('loading').find('.text').slideDown(320);
}, 1000);
No comments:
Post a Comment