天天看點

JQuery操作動态操作Table

tableId為table的id

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

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