0
안녕하세요 저는 jQuery 콜백 함수를 사용하여 removeClass를 사용했습니다. 이제이 함수로 지연을 첨부하고 싶습니다. 내 함수는 jQuery의 delay()
는 대기 효과와 함께 작동 이후jquery를 사용하여 지연있는 콜백 함수
$(function(){
$('a').click(function(){
$('.mydiv').find('.div1').addClass('jmnew').show('slow', function(){
$('.mydiv').find('.jmnew').removeClass('jmnew');
});
});
});
HTML //
<div class="mydiv">
<div class="div1" style="display:none">
abc
</div>
<a href="#">click me</a>
</div>
fiddle 링크
당신은setTimeout
기능을 사용해야합니다
빙고! 감사 인 Ashish의 bhagat를 사용해야합니다 – Carlos