字母 - 数字转换

var str = "A";

var code = str.charCodeAt();//字符对应的数字

str = String.fromCharCode(code);//数字对应的字符

posted @ 2018-08-28 16:42  萧韶九成  阅读(209)  评论(0)    收藏  举报