JQuery的 - Android的 - 在'KEYUP“事件不起作用在Backspace键在Chrome浏览器 [英] JQuery - Android - The 'Keyup' Event Does Not Work On Backspace In Chrome
本文介绍了JQuery的 - Android的 - 在'KEYUP“事件不起作用在Backspace键在Chrome浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我很奇怪,为什么退格/删除按钮jQuery中没有检测到keyup事件。
I am wondering why the backspace/ delete button does not detect a keyup event in jQuery.
我觉得这很奇怪,因为它是有用的,应予以支持。是否有替代品吗?
I find this odd as it is useful and should be supported. Are there any alternatives to this?
这是只发生在Android的 - 浏览器
This is only happening in Android - Chrome.
干杯
推荐答案
您可以实际上由一个事件侦听器连接到输入解决这个问题。
You can actually fix this by attaching an event listener to the input.
var inputBox = document.getElementById('inputId');
inputBox.addEventListener(‘input’, function() {
exampleFunc();
}, false);
干杯
这篇关于JQuery的 - Android的 - 在'KEYUP“事件不起作用在Backspace键在Chrome浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文