<br> function check_all(obj,Name)<br> { <br> <br> var checkboxs = document.getElementsByName(Name);<br> <br> for(var i=0;i<checkboxs.length;i++){<br> <br> checkboxs[i].checked = obj.checked;<br> <br> } <br> } <br> 1 2 3 全选/全不选