js基础_Unicode编码表


在字符串中使用转义字符输出Unicode编码(是16进制的)
\u四位编码
比如:

console.log(“\ul2620”);

在网页中使用Unicode编码(是10进制的)
&#编码;
比如:

《h1>☠;

相关