📜  将字符串转换为 unicode javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:20.147000             🧑  作者: Mango

代码示例1
Use String.fromCharCode() like this: String.fromCharCode(parseInt(input,16)). When you put a Unicode value in a string using \u, it is interpreted as a hexdecimal value, so you need to specify the base (16) when using parseInt.