标签:++ str console var pst code from OLE ascii码
var tempStr="A";
console.log(tempStr.charCodeAt());// 65 ,转ASCII码
console.log(String.fromCharCode(65));// A ,ASCII码转成字符
//循环输出 A~Z
for(var i=0;i<26;i++){
console.log(String.fromCharCode(65+i))
}
标签:++ str console var pst code from OLE ascii码
原文地址:https://www.cnblogs.com/stones-dream/p/10300127.html