tableId為table的id 保留第一行,删除其它所有的行:$(“#tableId tr”).empty(); 保留第一行,删除其它所有的行:$(“#tableId tr:not(:first)”).empty();