12
98
615
论坛积极会员
使用道具 举报
2
711
5045
论坛元老
8
59
389
论坛分享达人
var str = "A"; str.charCodeAt(); // 65 var str1 = 'a'; str1.charCodeAt(); // 97
var num = 97; String.fromCharCode(num); // 'a' var num1 = 100; String.fromCharCode(num1); // 'd'
qiaowei361 发表于 2020-8-10 19:43 参考如下: 将字符转为ASCII码
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2024-11-23 17:59 , Processed in 0.058532 second(s), 28 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.