html:
<span><input type="checkbox" id="checkAllBz" name="checkAllBz" value="" checked lay-filter="filterName" lay-skin="primary">全选</span>
js:
layui.use('form', function () { var form = layui.form; form.render(); form.on('checkbox(filterName)', function (data){ var check = $(this).prop("checked"); console.log("全选班组方法!!") console.log(check) }) })
实测有效;
标签:checkbox,log,form,渲染,layui,全选,check From: https://www.cnblogs.com/xuyinshan/p/17427920.html