【发布时间】:2014-02-23 23:44:13
【问题描述】:
【问题讨论】:
标签: jquery key-bindings
【问题讨论】:
标签: jquery key-bindings
这是您检测 Ctrl+Z 的方式:
$(document).keydown(function(e){
if( e.which === 90 && e.ctrlKey){
alert("yahoo!");
// Do your stuff
}
});
jQuery 也有一些内置的东西:
文章:http://www.mkyong.com/jquery/how-to-detect-copy-paste-and-cut-behavior-with-jquery/
【讨论】: