取ASCII的值,返回ASCII的值

console.log("A0azAZ09".charCodeAt(2));//ASCII码
console.log(String.fromCharCode(65));
console.log("0aA".charCodeAt(0));
console.log(String.fromCharCode(48));

posted @ 2020-01-24 16:26  海小真  阅读(294)  评论(0编辑  收藏  举报