编码

 1 <!DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta charset="UTF-8">
 5         <title></title>
 6         <script type="text/javascript">
 7             
 8             /*
 9              * 在字符串中使用转义字符输入Unicode编码
10              *     u四位编码
11              */
12             console.log("u2620");
13             
14         </script>
15     </head>
16     <body>
17         
18         <!--在网页中使用Unicode编码
19             &#编码; 这里的编码需要的是10进制
20         -->
21         <h1 style="font-size: 200px;">&#9760;</h1>
22         <h1 style="font-size: 200px;">&#9856;</h1>
23         
24     </body>
25 </html>
原文地址:https://www.cnblogs.com/lvjianqun/p/10307170.html