1、https://www.jb51.net/article/43534.htm
<script>str="A";code = str.charCodeAt(); str2 = String.fromCharCode(code);str3 = String.fromCharCode(0x60+26);document.write(code+‘<br />‘);document.write(str2+‘<br />‘);document.write(str3);</script>
2、
3、
4、
5、
JS字符串.字符 _ASC码_互转
原文地址:https://www.cnblogs.com/h5skill/p/9380597.html