天天看点

JQuery操作动态操作Table

tableId为table的id

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

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