这只贴上js代码:
/**
* Created by xiongyu on 2017/5/12.
*/
$(function () {
$("#checkAll").click(function () {
console.log(this.checked);
$("input[name='ckb']").prop("checked",this.checked);
});
});
这只贴上js代码:
/**
* Created by xiongyu on 2017/5/12.
*/
$(function () {
$("#checkAll").click(function () {
console.log(this.checked);
$("input[name='ckb']").prop("checked",this.checked);
});
});