原生js方案
let a=document.querySelector('input[type="checkbox"]')
console.log(a.getAttribute('checked')); //null
a.onclick=function(){
if(a.getAttribute('checked
原生js方案
let a=document.querySelector('input[type="checkbox"]')
console.log(a.getAttribute('checked')); //null
a.onclick=function(){
if(a.getAttribute('checked