js判断checkbox

if(document.getElementById("checkboxID").checked){ 
alert("checkbox is checked");
}
原文地址:https://www.cnblogs.com/xiongwei89/p/3254893.html