编辑下面的代码:【加编码】
<html> <body> <h1 id="header">旧标题</h1> <script> var element=document.getElementById("header"); element.innerHTML="新标题"; </script> <p>"旧标题" 被 "新标题" 取代。</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂