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