1.表情字符转编码
"😁".codePointAt(0).toString(16) -> 1f601
encodeURIComponent("😁") -> %F0%9F%98%81
2.编码转表情字符
String.fromCodePoint('0x1f601') utf-32
1.表情字符转编码
"😁".codePointAt(0).toString(16) -> 1f601
encodeURIComponent("😁") -> %F0%9F%98%81
2.编码转表情字符
String.fromCodePoint('0x1f601') utf-32
本文标题:编码转表情字符
本文链接:https://www.haomeiwen.com/subject/qivchltx.html
网友评论