window.onload = function () { //禁止F5刷新 document.onkeydown = function (e) { if (e.keyCode === 116) { return false; } }; //靜止右鍵 document.oncontextmenu = function() {event.returnValue = false;} }
js 禁止刷新
猜你喜欢
转载自blog.csdn.net/Cheng120636/article/details/80619796
今日推荐
周排行