執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Template Strings</h1> <p>With back-ticks, you can use both single and double quotes inside a string:</p> <p id="demo"></p> <p>Templates not supported in Internet Explorer.</p> <script> let text = `He's often called "Johnny"`; document.getElementById("demo").innerHTML = text; </script> </body> </html>