与ASCALL码对应
1.字母转换成数字
.charCodeAt(0)
let letter = 'B';
console.log(letter.charCodeAt(0));//66
2.数字转成成字母
String.fromCharCode()
let num = 65;
console.log(String.fromCharCode(num));//A
与ASCALL码对应
1.字母转换成数字
.charCodeAt(0)
let letter = 'B';
console.log(letter.charCodeAt(0));//66
2.数字转成成字母
String.fromCharCode()
let num = 65;
console.log(String.fromCharCode(num));//A