文字の変更

JavaScript勉強中だよ!

<p id="test">JavaScript勉強中だよ!</p>
<script>

document>getElementById();

</script>
<script>

console.log("test");
document.getElementById("test");

</script>
<script>
document.getElementById('test').textContent = 'textContentでHTMLを書き換えています';
</script>

コメントする

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA