2012-11-04 23 views

回答

0

別不知道背景$(this)應該指什麼,所以:

在正確的背景下

$cachedClosest = $(this).closest('tr'); 

調用的fancybox

$('.btnUpdateitem').fancybox({ 
    openEffect : 'elastic', 
    closeEffect : 'elastic', 
afterClose: function() { 
    $cachedClosest.remove(); 
    }) 
}); 

希望它可以幫助一點點