问题
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?
This is only happening in Android - Chrome.
回答1:
You can actually fix this by attaching an event listener to the input.
var inputBox = document.getElementById('inputId');
inputBox.addEventListener(‘input’, function() {
exampleFunc();
}, false);
Cheers
来源:https://stackoverflow.com/questions/24557402/jquery-android-the-keyup-event-does-not-work-on-backspace-in-chrome