<!DOCTYPE html> <html> <body> <h1>JavaScript 字符串运算符</h1> <h2>+ 运算符</h2> <p>+ 运算符连接(添加)字符串。</p> <p id="demo"></p> <script> let text1 = "Bill"; let text2 = "Gates"; let text3 = text1 + " " + text2; document.getElementById("demo").innerHTML = text3; </script> </body> </html>