javascript 数字 字母 互转

来源:互联网 发布:基金算法 编辑:程序博客网 时间:2024/06/02 17:52
单个字符转数字: 
'a'.charCodeAt(0) 
结果: 97 
数字转字母: 
String.fromCharCode(97) 
结果:a
原创粉丝点击