判断复选框

方法一:
if ($("#checkbox-id")get(0).checked) {
// do something
}

方法二:
if($('#checkbox-id').is(':checked')) {
// do something
}

方法三:
if ($('#checkbox-id').attr('checked')) {
// do something
}

原文地址:https://www.cnblogs.com/hanxuanwong/p/5422271.html