<script type="text/javascript">
var str;
var asc;
str = "A";
document.write(str.charCodeAt(0));
asc = 65;
document.write(String.fromCharCode(asc));
</script>
转载于:https://www.cnblogs.com/lykouyi/p/5876425.html
<script type="text/javascript">
var str;
var asc;
str = "A";
document.write(str.charCodeAt(0));
asc = 65;
document.write(String.fromCharCode(asc));
</script>
转载于:https://www.cnblogs.com/lykouyi/p/5876425.html