在JavaScript中,如何获取ASCII值的字符串表示,例如如何将65
转换为A
发布于 2009-03-02 11:44:45
fromCharCode方法将ASCII码转换为字符串:
<script type="text/javascript">
document.write(String.fromCharCode(65,66,67)); // ABC
</script>
希望这能有所帮助!
发布于 2014-09-16 20:28:54
发布于 2009-03-02 11:45:13
您要查找的方法是String.fromCharCode (http://www.w3schools.com/jsref/jsref_fromCharCode.asp)。
https://stackoverflow.com/questions/602020
复制相似问题