parseHex(hex) {
let arr = [];
for (let i = 0; i < hex.length; i = i + 2) {
let curCharCode = parseInt(hex.substring(i, i + 2), 16);
arr.push(curCharCode);
}
return new TextDecoder().decode(new Uint8Array(arr));
},
示例
hex = "4F4241544120544149434849";
this.parseHex(hex) // OBATA TAICHI