Created
March 21, 2014 06:00
-
-
Save hubsgz/9680411 to your computer and use it in GitHub Desktop.
js ascii码和字符间的转换
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 把ascii码转换成字符 | |
String.fromCharCode(65); | |
// 把字符转换成ascii码 | |
'Z'.charCodeAt(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment