您可以使用:
$(this).parent().remove(); // or $(this).closest('tr').remove();
如果有用请告诉我:)
编辑
我很想知道为什么我投了反对票:)
不能在多行上使用同一ID。
<button class="removebutton" data-id="?">Remove</button>
那么这个 $("#removebutton). 应该是 $(".removebutton").
$("#removebutton).
$(".removebutton").
你错过了关门 " 上面是你的选择器。
"