html代码:
<input id="id" type="checkbox" >
js代码:
<script type
="text/javascript">
$(function(){
$("#id").click(function(){
if($(this).prop("checked")==true){
console
.log("勾选");
} else{
console
.log("未勾选");
}
});
})
</script
>
转载请注明原文地址:https://blackberry.8miu.com/read-44850.html