var cbox = document.getElementById("checkbox");cbox.onchange = function(){ var ischecked = this.checked; if(ischecked){alert("是")}else{alert("否")}}