如何讓這個函數永遠持續運行。重複jQuery .each()函數無限次
$('.featuedbanner img').each(function(){
$(this).delay(featlay).animate({opacity: 1, leaveTransforms:true}, {duration:2000, queue:true});
featlay += 6000;
$(this).delay(featlay).animate({opacity: 0, leaveTransforms:true}, {duration:2000, queue:true});
});
那就是使這是一個無限循環
我不認爲你說的很清楚你想做什麼...... – sth
@sth就是讓這個無限循環 –
無限循環在這裏不是正確的術語..你真正想要的是什麼是再次無限調用自己的代碼。 –