Open david2tdw opened 5 years ago
ASCII 转换为Unicode: String.fromCharCode(i)
String.fromCharCode(65) "A" String.fromCharCode(122) "z"
Unicode转换为ASCII: stringObject.charCodeAt(index)
'A'.charCodeAt(0) 65 'Z'.charCodeAt(0) 90 'a'.charCodeAt(0) 97 'z'.charCodeAt(0) 122
ASCII 转Unicode 表示方法: : -> : a的16进制ASCII 表示方法: a -> \u0061 中文转Unicode: 啊 -> \u554a ASCII 转Unicode: 啊 -> 啊
unicode 字符百科
ASCII 转换为Unicode: String.fromCharCode(i)
Unicode转换为ASCII: stringObject.charCodeAt(index)