编辑下面的代码:【加编码】
<html> <body> <h1 id="myH1"></h1> <p id="myP"></p> <script> /* document.getElementById("myH1").innerHTML="Welcome to my Homepage"; document.getElementById("myP").innerHTML="This is my first paragraph."; */ </script> <p><strong>Note:</strong> The comment-block is not executed.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂