<div class="aaa1">
<div class="">123</div>
<span>2222</span>
</div>

var aa=document.getElementsByClassName("aaa1")[0].children[1].innerHTML
console.log(aa);
posted on 2017-12-19 15:10  仔仔爱学习  阅读(23986)  评论(0编辑  收藏  举报