更新时间:2023-10-28 08:03:34
我想要的是addClass 发生在 fadeOut()结束之后.
What I want is the addClass will happen after it ended the fadeOut().
您可以使用对fadeOut
的回调函数,如下所示:
You can use callback function to fadeOut
like this:
$('#sampleID').fadeOut(500, function(){
$(this).addClass('aNewClass');
});