考慮下面的代碼片段:搬遷之前的jQuery高亮效果()
$('.remove_item').click(function(e) {
var _item = $(this).closest('.cart_item');
if(confirm('Biztosan törölhetem a terméket a kosárból?')) {
_item.effect('highlight', {}, 100).stop().fadeOut('fast');
_item.remove();
...
我想搗毀(.remove()
)前突出實際行吧。如果我不.remove()
該項目,突出顯示工作。
我該如何突出顯示,然後刪除元素?
請參閱此處:http://stackoverflow.com/questions/510761/jquery-delete-dom-element-after-fading-out – mamoo 2010-11-09 13:16:08