JavaScript 表达式(使用字符串)

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <h2>JavaScript 表达式</h2>
  6.  
  7. <p>表达式计算为值。</p>
  8.  
  9. <p id="demo"></p>
  10.  
  11. <script>
  12. document.getElementById("demo").innerHTML = "Bill" + " " + "Gates";
  13. </script>
  14.  
  15. </body>
  16. </html>