var $checkbox=document.getElementById('checkbox');
if(!$checkbox.checked){
console.log("true");
}
var $checkbox=document.getElementById('checkbox');
if(!$checkbox.checked){
console.log("true");
}
转载于:https://www.cnblogs.com/AaronNotes/p/6480253.html