$(document).ready(function() {$("#sample tr").click(function() {//change the background color to red before removing$(this).css("background-color","#FF3700"); $(this).fadeOut(400, function(){ $(this).remove();});});});在上面的代码中,我们都附有“#示例”表中的所有“TR”的处理程序。上按一下,我们首先改变该行的背景,然后淡出它并删除它。这是一个简单的任务。