This commit is contained in:
尹吉欢
2018-03-13 10:16:16 +08:00
parent 10a547fb6b
commit ed180d40a5
155 changed files with 30041 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
(function(w){
// 空函数
function shield(){
return false;
}
//取消浏览器的所有事件,使得active的样式在手机上正常生效
document.addEventListener('touchstart',shield,false);
document.oncontextmenu=shield;
// DOMContentLoaded事件处理
document.addEventListener('DOMContentLoaded',function(){
document.body.onselectstart=shield;
prettyPrint();
},false);
})(window);