JavaScript 注释JavaScript 注释<!DOCTYPE html><html><body> <h2>JavaScript 注释<b>不会</b>被执行。</h2> <p id="demo"></p> <script>var x;x = 7;// x = 8; 我不会被执行document.getElementById("demo").innerHTML = x;</script> </body></html>