06.Unicode编码表.html 621 B

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. <script>
  9. /*
  10. 在字符串中使用转义字符输入Unicode编码
  11. \u四位编码
  12. */
  13. console.log("\u0054");//输出结果为T
  14. </script>
  15. </head>
  16. <body>
  17. <!-- 在网页中使用Unicode编码:
  18. &#编码;这里的编码需要的是10进制
  19. -->
  20. <h1 style="font-size: 200px;">&#9760;</h1>
  21. </body>
  22. </html>