Javascript Unicode转Korean文

function unicodeToKorean(a) { return a.replace(new RegExp("\\u([0-9a-fA-F]{4})","g"), function(c, d) { return String.fromCharCode(parseInt(d, 16)) }) };

posted @ 2022-12-27 16:42  Nihility丶  阅读(25)  评论(0)    收藏  举报