<div class="aaa1">
<div class="">123</div>
<span>2222</span>
</div>
var aa=document.getElementsByClassName("aaa1")[0].children[1].innerHTML
console.log(aa);
ch-zaizai 2017-12-19 15:10 原文
<div class="aaa1">
<div class="">123</div>
<span>2222</span>
</div>
var aa=document.getElementsByClassName("aaa1")[0].children[1].innerHTML
console.log(aa);