Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

JavaScript数字与字母相互转换

数字 转换为 字母:

const num = 'a'.charCodeAt() // num = 97

字母 转换为 数字:

var str = String.fromCharCode(97)  // str = 'a'
posted @ 2020-10-14 15:21  365/24/60  阅读(341)  评论(0编辑  收藏  举报