[jQuery] What's different from keyCode to which?
[jQuery] What's different from keyCode to which?
keyCode and which will get the same value, so anything different?
<script>
$(function() {
$(window).keydown(function(e) {
console.log(e.keyCode);
console.log(e.which);
});
});
</script>
Topic Participants
chan15tw
mallon.luke