JScript技巧篇——操纵ASSIC

 

1 var inputChar = "B";
2 alert(inputChar.charCodeAt(0));   //output:66
3 alert(String.fromCharCode(65));    //output:A

 

posted @ 2009-11-19 15:05  风影极光  阅读(148)  评论(0编辑  收藏  举报