在table第一行前插入一行 在table的第一行前插入一行。 //追加到第一行 var html="<tr><td>xxId</td><td>xxName</td></tr>"; $("#tableId tbody").prepend(html);