JQ实现checkBox全选/反选
/**
* JQ实现checkBox全选/反选
*/
$(’.checkAll’).on(‘click’, function () {
console.log(‘checkAll’)
$(’.checkOne’).prop(“checked”, this.checked);
});
function checkOne(){
var $subs = $(’.checkOne’);
$(".checkAll").prop(“checked” , $subs.length == $subs.filter("
原创
2021-01-29 14:38:04 ·
162 阅读 ·
0 评论