SOURCE

console 命令行工具 X clear

                    
>
console
// 输出标题:
document.getElementById("myH1").innerHTML="Welcome to my Homepage";
// 输出段落:
document.getElementById("myP").innerHTML="This is my first paragraph.";
<h1 id="myH1"></h1> 
 <p id="myP"></p>  
 <p><b>注释:</b>注释不会被执行。</p>