이 코드를 가지고 있지만, 한 번만 실행하여의 setTimeout 코드는 ... jQuery를
$('.' + container).hover(function() {
t = setTimeout(function(elem){
//this should be executed as long as I hover,
//with interval declared in viewSpped variable
$(elem).find('img').first().appendTo('.' + container).fadeOut(500);
$(elem).find('img').first().fadeIn(800);
}(this), viewSpeed);
}...
내가 잘못 어떤 생각을 작동하지? 감사!
이 함수는 setTimeout에 전달하는 대신 실행 중입니다. 함수 문장 뒤에'(this)'를 버린다. –
간단한 기능을 왜곡하고 부러 뜨릴 수있는 다른 방법을보고 다른 것을 비난하는 것은 항상 재미 있습니다. –