首页 > 技术文章 > js 数字转字符互转

xielei0502 2021-02-24 19:02 原文

//数字转字符
String.fromCharCode(97);//"a"

//字符转数字
'a'.charCodeAt();//97

 

推荐阅读