Can someone tell me what the difference between the change
and input
events is?
我使用jQuery添加它们:
$('input[type="text"]').on('change', function() {
alert($(this).val());
})
它也适用于input
而不是change
.
Maybe some difference in the event ordering relative to focus?