2012年8月1日
摘要: Web开发时可能经常会用到在keyPress时获得输入的字符。String.fromCharCode()可以来实现这个,不过这个函数在你使用Shift键来输入特殊字符时就不管用了,需要改造一下,这个帖子给出了改造的方法,经测试在各种主流浏览器均正常。<html><head><title >mapKeyPressToActualCharacter test</title><script langua... 阅读全文
posted @ 2012-08-01 14:04 峻祁连 阅读(1523) 评论(0) 推荐(0) 编辑

Related Posts Plugin for WordPress, Blogger...