JavaScript 语句由分号分隔
- <!DOCTYPE html>
- <html>
- <body>
- <h2>JavaScript 语句</h2>
- <p>JavaScript 语句被分号分隔。</p>
- <p id="demo1"></p>
- <script>
- var a, b, c;
- a = 5;
- b = 6;
- c = a + b;
- document.getElementById("demo1").innerHTML = c;
- </script>
- </body>
- </html>
本文档使用 技术池 构建