防开发者调试JS代码

代码如下:
$(document).ready(function(){ 
$(document).bind("contextmenu",function(e){return false;});});
$(document).ready(function() {
$(document).bind("keydown",function(e){e=window.event||e; if(e.keyCode==116){e.keyCode = 0;return  false;} }); }); 
$(document).ready(function() {
$(document).bind("keydown",function(e){e=window.event||e; if(e.keyCode==118){e.keyCode = 0;return  false;} }); });
$(document).ready(function() {
$(document).bind("keydown",function(e){e=window.event||e; if(e.keyCode==122){e.keyCode = 0;return  false;} }); });
$(document).ready(function() {
$(document).bind("keydown",function(e){e=window.event||e; if(e.keyCode==123){e.keyCode = 0;return  false;} }); });
$(document).ready(function() {
$(document).bind("keydown",function(e){e=window.event||e; if(e.keyCode==83){e.keyCode = 0;return  false;} }); });
console.clear();
console.warn("%c", "padding:180px 180px;line-height:400px;background:url('https://ww2.sinaimg.cn/large/a15b4afegy1fo1tmhcqebj209f09ymxi.jpg') no-repeat;", "\nHey man! look code!\nWhy don't you buy one?\nhttp://hongdunapi.com\n\n");
if (!longurl){longurl=window.location.href;}

转载声明:本文为红盾科技技术分享平台的原创文章,转载请注明原文地址,谢谢合作

发表评论: