<div id="parent">текст<p> абзац</p><!-- коментарий --></div> let parent = document.querySelector('#parent'); let text = parent.lastChild.
確定! 回上一頁