This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
单击按钮时如何触发 keydown 事件?
var e = jQuery.Event("keydown");
e.which = 122; // # Some key code value
$('.button-fullscreen').click(function(){
$(window).trigger(e);
return false;
});