js 数字转字符互转

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

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

 

posted @ 2021-02-24 19:02  xielei0502  阅读(112)  评论(0编辑  收藏  举报