为了让table具有更好的可读性,我们可以将表格的header信息克隆一份到表格的底部,这种特效通过JQuery就很容易实现:
|
1
2
3
4
5
|
var $tfoot = $(''); $($('thead').clone(true, true).children().get().reverse()).each(function(){ $tfoot.append($(this));});$tfoot.insertAfter('table thead'); |