首页 > Web开发 > 详细

JS字符串.字符 _ASC码_互转

时间:2018-07-28 11:03:31      阅读:141      评论:0      收藏:0      [点我收藏+]

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!