Мой код в значительной степени объяснить себе, что я собираюсь получить:Javascript :: TextContent/InnerText из FirstChild
<div id=player>
<div class="button hand">►</div>
<div class=time>00:00/02:25</div>
<div class="timeline hand"><span class="now hand"></span></div>
</div>
<script>
var myPlayer=document.getElementById('player').firstChild;
var playerStatus=(myPlayer.innerText||myPlayer.textContent);
console.log(playerStatus);
</script>
Я ожидаю, чтобы получить значение Ascii ►
на консоли.
Маленький твик нужен здесь
OMG я люблю тебя: D! 10x !!! –
@ Hezi-Gangina Эй, добро пожаловать! ^^ – MaxArt