var a =document.getElementsByClassName(‘SearchResult__title-text‘); for (i = 0;i < a.length;i++){ console.log(a[i].innerText); }
js真乃神器也
原文:https://www.cnblogs.com/xiaobaichuangtianxia/p/9397162.html