搜索文档
handleEmoji(str?, type?): string
str?
type?
string
处理emoji,用于把用utf16编码的字符转换成实体字符
str
''
type
"encode"
"decode"
'encode'
编译/解析后的字符串
Example
handleEmoji("😃", "encode"); // => "😃" handleEmoji("😊", "decode"); // => "😊"