JavaScript 字符串
- <!DOCTYPE html>
- <html>
- <body>
- <h2>JavaScript 字符串</h2>
- <p>字符串可由双引号或单引号包围。</p>
- <p id="demo"></p>
- <script>
- document.getElementById("demo").innerHTML = 'Bill Gates';
- </script>
- </body>
- </html>
上一篇:JavaScript 数字
下一篇:JavaScript 变量