<input type=‘checked’ > 判定与操作:
if($(this).is(':checked')){
//全选
$('.check-td').each(function(){
$(this).prop("checked",true)
})
}else{
//撤销全选
$('.check-td').each(function(){
$(this).prop("checked",false)
})
}
layer之弹框确认:
layer.confirm("确定删除这" + checkeds + "个用户?",function(index){
//do.something
console.log('删除成功?');
layer.close(index);})