企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
~~~ function selectAll(objSelect) { if (objSelect.checked == true) { $("input[name='chkId']").attr("checked", true); $("input[name='chkAll']").attr("checked", true); }else if (objSelect.checked == false) { $("input[name='chkId']").attr("checked", false); $("input[name='chkAll']").attr("checked", false); } } /** * 实现checkbox全选与全不选 */ function checkAll(selectAllBoxId, childBoxsId) { var selectall = document.getElementById(selectAllBoxId); var allbox = document.getElementsByName(childBoxsId); if (selectall.checked) { for ( var i = 0; i < allbox.length; i++) { allbox[i].checked = true; } } else { for ( var i = 0; i < allbox.length; i++) { allbox[i].checked = false; } } } ~~~