Use .remove()
$("#yourtableid tr").remove();
如果您想要保留数据以备将来使用,即使在移除它之后,您也可以使用100
$("#yourtableid tr").detach();
If the rows are children of the table then you can use child selector instead of descendant selector, like
$("#yourtableid > tr").remove();