Skip to content

Instantly share code, notes, and snippets.

@hubsgz
Created March 21, 2014 06:00
Show Gist options
  • Save hubsgz/9680411 to your computer and use it in GitHub Desktop.
Save hubsgz/9680411 to your computer and use it in GitHub Desktop.
js ascii码和字符间的转换
// 把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