1234567891011121314151617181920212223242526272829 |
- <!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>
- <script>
- /*
- 在字符串中使用转义字符输入Unicode编码
- \u四位编码
- */
- console.log("\u0054");//输出结果为T
-
-
- </script>
- </head>
- <body>
- <!-- 在网页中使用Unicode编码:
- &#编码;这里的编码需要的是10进制
- -->
- <h1 style="font-size: 200px;">☠</h1>
- </body>
- </html>
|