Unicode编码

 1 <!DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta charset="utf-8">
 5         <title></title>
 6     <script type="text/javascript">
 7     /*
 8     在字符串中使用转义字符输入Unicode编码
 9     u四位编码
10     */
11    console.log("u2620");//骷颅头~哈哈哈哈
12     </script>
13     </head>
14     <body>
15         <!--
16         在网页中使用Unicode编码
17         &#编码 是16进制 需要将其转换为10进制 2620转为16进制为9760
18         -->
19         <h1 style="font-size: 100px;">&#9760;</h1>
20     </body>
21 </html>

原文地址:https://www.cnblogs.com/zuiaimiusi/p/11217431.html