我有一个十六进制代码1f610,使格式字符串\u{1f610}与 in display. But how can I unescape it from the hex code?
I did
var code = '1f610';
unescape('%u' + code); //=> ?0
unescape('%u' + '{' + code + '}'); //=> %u{1f610}
Run Code Online (Sandbox Code Playgroud)
what should I do to unescape it to ?