function check_all(obj,cName) { var checkboxs = document.getElementsByName(cName); for(var i=0;i<checkboxs.length;i++){ checkboxs[i].checked = obj.checked; } }
checkbox全选
最新推荐文章于 2022-01-21 11:20:47 发布
function check_all(obj,cName) { var checkboxs = document.getElementsByName(cName); for(var i=0;i<checkboxs.length;i++){ checkboxs[i].checked = obj.checked; } }