admin 发表于 2020-4-11 10:51:18

js ascii和字符转换

var str = "A";
str.charCodeAt();// 65

var num = 97;
String.fromCharCode(num);// 'a'
页: [1]
查看完整版本: js ascii和字符转换