checkbox判断选中

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