z自己写的 感觉没错啊
function checkall(){
var hobby = document.getElementsByTagName("input");
var a=document.getElementsByName("hobby");
for (var i=;i<=a.length;i++){
a[i].checked=ture;
}
function checkall(){
var hobby = document.getElementsByTagName("input");
var a=document.getElementsByName("hobby");
for (var i=;i<=a.length;i++){
a[i].checked=ture;
}
2019-01-06
举报