//一键勾选全部的checkbox function checkAll(){ var obj = document.getElementById("all"); var arr = document.getElementsByName("one"); for(var i = 0; i < arr.length; i++){ arr[i].checked = obj.checked; } }
原文地址:https://www.cnblogs.com/demon09/p/9089945.html
时间: 2024-11-03 04:41:14