摘要:
使用时直接调用:jQuery(document).bind('keydown', 'k',function (evt){ //此处写按快捷键执行的函数代码 });完整代码如下:/* * jQuery Hotkeys Plugin * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * * Based upon the plugin by Tzury Bar Yochay: * http://github.com/tzuryby/hotkeys 阅读全文