document.onkeydown = function (e) {//键盘按键控制 e = e || window.event;if ((e.ctrlKey && e.keyCode == 82) || //ctrl+R e.keyCode == 116) {//F5刷新,禁止 } }
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/14021.html
document.onkeydown = function (e) {//键盘按键控制 e = e || window.event;if ((e.ctrlKey && e.keyCode == 82) || //ctrl+R e.keyCode == 116) {//F5刷新,禁止 } }
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/14021.html