方法:字符转ascii码:用charCodeAt(); ascii码转字符:用fromCharCode();
例子:
字母转成数字:
var str='A'; str.charCodeAt()
数字转换成字母:
var num=65 ; String.fromCharCode(num);
获取小写字母a的代码: a===>String.fromCharCode(0x60+1); z===>String.fromCharCode(0x60+26)