$(document).on('change', 'table thead input', function() {
var checked = $(this).is(":checked");
var index = $(this).parent().index();
$('table tbody tr').each(function() {
if(checked) {
$(this).find("td").eq(index).show();
} else {
$(this).find("td").eq(index).hide();
}
});
});
显示 /隐藏表的列
最新推荐文章于 2023-01-05 21:38:53 发布