layui.form.on('checkbox(resultQuery)', function(data){
console.log(data.elem); //得到checkbox原始DOM对象
console.log(data.elem.checked); //是否被选中,true或者false
console.log(data.value); //复选框value值,也可以通过data.elem.value得到
console.log(data.othis); //得到美化后的DOM对象
if($('#matching2').is(':checked')) {
layer.msg("打钩了");
} else {
layer.msg("取消打钩");
}
})

京公网安备 11010502036488号