0

这没有按预期工作。如何使此代码以尽可能少的行工作?

$('selector').on('change, keyup', function() {
   // some code 
});
4

1 回答 1

4

There should not be the , between the event names

$('selector').on('change keyup', function() {
   // some code 
});
于 2013-10-08T15:49:19.497 回答