好吧,我真的被困在这里了。
我有一个具有 id 的 tr 表:#tr_ xx 其中 xx 是一个数字。
项目是一个数字。
if(... 部分确保后面的内容仅在所有动画结束时执行一次。
$('#tr_' + item + '>td').fadeOut('slow', function() {
if($('#tr_' + item + '>td:animated').length === 0)
{
$(this).parent().remove();
// This function recolors the rows
// -not really related to this
Recolor();
}
});
问题是 tr 没有被删除。它只是被隐藏起来。
如何删除<tr> 而不仅仅是隐藏它?