現在の反復を中断して次の反復に進むために使用されるのと同じように、JavaScript でcontinue
現在の反復を中断setInterval()
し、待機せずに次の間隔に進むにはどうすればよいですか?
var intervalID = window.setInterval( function() {
if(conditionIsTrue) {
// Break this iteration and proceed with the next
// without waiting for 3 seconds.
}
}, 3000 );