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

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