这个已经被难住了。我正在向一个元素添加一些 HTML,然后想要将其淡入。但是,在实施时,它不会淡入。它只是立即“捕捉”。语法/顺序看起来正确。任何人都认为我的逻辑有问题:
$('span.mySpan')
// fade out the empty span so it's hidden
.fadeOut('fast',function(){
$(this)
.html($restoreLink) // add the HTML to the hidden span
.fadeIn('slow') // now fade it in
})