//字符串和数字互转 var str="a" var r = str.charCodeAt(0); //97 10进制 console.log(r); var t=String.fromCharCode(r); console.log(t); //a
//字符串和数字互转 var str="a" var r = str.charCodeAt(0); //97 10进制 console.log(r); var t=String.fromCharCode(r); console.log(t); //a
转载于:https://www.cnblogs.com/norm/p/7490669.html