js中数字和字母互转的方法

var letter = String.fromCharCode(66);
// B
var num = "B".charCodeAt();
// 66
posted @ 2022-01-11 16:14  冰中焱  阅读(111)  评论(0)    收藏  举报