$(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-01 16:46:28 发布
1万+

被折叠的 条评论
为什么被折叠?



