12345678910111213141516171819202122 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=<device-width>, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <script>
- var s1 = 'a'
- //es6变量
- let s2 = 'b'
- //es6常量
- const s3 = 'c'
- //es6 模板字符串 ``
- let str = `${s1}`+'#'+ `${s3}`
- console.log(str)
- </script>
- </body>
- </html>
|