javascript 禁止键盘特定键
2020-03-10 本文已影响0人
戬谷stone
$(document).on('keydown',function(e){
e = e.event || window.event;
if(e.keyCode == 123 || (e.ctrlKey&&e.shiftKey&&e.keyCode==73) || (e.ctrlKey&&e.keyCode==85)) return false
})
$(document).on('keydown',function(e){
e = e.event || window.event;
if(e.keyCode == 123 || (e.ctrlKey&&e.shiftKey&&e.keyCode==73) || (e.ctrlKey&&e.keyCode==85)) return false
})