joh*_*ohn 11 jquery
鉴于以下内容:
<table id="myTable"> <tr> </tr> <tr> </tr> ... </table>
我可以通过以下方式清除表: $("myTable").html("");
$("myTable").html("");
但是,我想清除除第一行之外的所有行.有任何想法吗?
Jef*_*eff 30
$('#myTable tr:gt(0)').remove()
归档时间:
15 年 前
查看次数:
9061 次
最近记录:
11 年,11 月 前