标签:fun window amp pre blog doc code key alt
1 window.onbeforeunload = function() 2 { 3 var n = window.event.screenX - window.screenLeft; 4 var b = n > document.documentElement.scrollWidth-20; 5 if(b && window.event.clientY < 0 || window.event.altKey) 6 { 7 delAllCookie(); 8 } 9 }
标签:fun window amp pre blog doc code key alt
原文地址:http://www.cnblogs.com/zjj1990/p/7580186.html