失落的人形天使
失落的人形天使
  • 发布:2015-07-15 16:02
  • 更新:2016-04-14 10:45
  • 阅读:2023

【安卓机器keyup监听按键返回值都为0】

分类:HTML5+
pwd1.on("keyup",function(evt){  
     var which = Zepto.trim((evt.which+""));  
      console.info("which="+which+"   "+typeof which);  
});

正在同步/pages/xuntingtong/xuntingtong_recharge.html文件...
108 KB/s (11449 bytes in 0.103s)
which=0 string at pages/xuntingtong/xuntingtong_recharge.html:245
which=0 string at pages/xuntingtong/xuntingtong_recharge.html:266
which=0 string at pages/xuntingtong/xuntingtong_recharge.html:287
which=0 string at pages/xuntingtong/xuntingtong_recharge.html:308
which=0 string at pages/xuntingtong/xuntingtong_recharge.html:329
which=0 string at pages/xuntingtong/xuntingtong_recharge.html:350

我按了很多键位都是输出键值为0,而且打印console.info("evt="+JSON.stringify(evt))抛异常:
'KeyboardEvent.keyLocation'' is deprecated. Please use 'KeyboardEvent.location' instead.
Uncaught TypeError: Converting circular structure to JSON at pages/xuntingtong/xuntingtong_recharge.html:245

2015-07-15 16:02 负责人:无 分享
已邀请:
失落的人形天使

失落的人形天使 (作者)

IOS机器上一切正常

Monokeros

Monokeros

这个问题现在依然存在,不知道解决没有?

该问题目前已经被锁定, 无法添加新回复