请教大牛们,js 如果把16进制转成汉字

2025-03-20 12:08:23
推荐回答(1个)
回答1:

var hexCode = '6211';
var code = parseInt(hexCode, 16);
var a = String.fromCharCode(code);
alert(a);