1.原生JS代码
1 2 3 4 |
var eles = document.querySelectorAll("[aria-labelledby$=-title]") for(var i=0;i<eles.length;i++){ eles[i].style.visibility="hidden" } |
2.Es6代码
1 2 3 4 |
let eles = document.querySelectorAll("[aria-labelledby$=-title]"); eles.forEach((ele)=>{ ele.style.visibility="hidden"; }) |