//ASCII码转换字符 function asciiToStr(code) { //alert("code:" + code + "\r\n字符:" + String.fromCharCode(code)); return String.fromCharCode(code); } //字符转换ASCII码 function strToAscii(str) { return str.charCodeAt(); }
//ASCII码转换字符 function asciiToStr(code) { //alert("code:" + code + "\r\n字符:" + String.fromCharCode(code)); return String.fromCharCode(code); } //字符转换ASCII码 function strToAscii(str) { return str.charCodeAt(); }
转载于:https://www.cnblogs.com/jcdd-4041/p/4226890.html