let _this = this;
window.onkeydown=function(e){
let curKey = e.which;
if(curKey==112){
_this.queDing()
}
}
3.屏蔽window系统自带的 *** 作
document.onkeydown = function (e) {
let ev = typeof event != "undefined" ? window.event : e;
if(ev.keyCode == 112 || ev.keyCode == 115 || ev.keyCode == 120){
return false;
}
};
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)