首页 > 如何在js脚本里获取一个input在中文输入法下输入的keycode或者charcode

如何在js脚本里获取一个input在中文输入法下输入的keycode或者charcode

RT,

就像在这里说的,http://mdn.beonex.com/en/DOM/event.keyCode.html,“Characters entered through an IME do not register through keyCode or charCode.”

我想知道有没有其他方式获取到使用IME下输入的keycode呢?

示例代码在这里:http://jsfiddle.net/zyandroid/df5bb/

【热门文章】
【热门文章】