获取到页面中所有的 checkbox 怎么做
var aInput = document.querySelectorAll('input')
let len = aInput.length
checkboxList = []
while (len--) {
if(aInput[len].type=='checkbox'){
checkboxList.push(aInput[len])
}
}
var aInput = document.querySelectorAll('input')
let len = aInput.length
checkboxList = []
while (len--) {
if(aInput[len].type=='checkbox'){
checkboxList.push(aInput[len])
}
}