<script src="jquery-3.2.1.min.js"></script>
<script>
$(function(){
$('#cheall').click(function(){
if (this.checked==true) {
$('.che').prop('checked',true)
}else if (this.checked==false) {
$('.che').prop('checked',false)
}
}
);
})
</script>
全选 全不选 js
最新推荐文章于 2022-08-23 17:23:43 发布