<SCRIPT language=javascript>
function stop(){
clear();
return false;
}
document.oncontextmenu=stop;
function clear(){
window.location.reload();
}
document.onkeydown =document.onkeyup = document.onkeypress=function(){
clear();
return(false);
}
document.onselectstart=new Function('event.returnValue=false;');
</SCRIPT>
function stop(){
clear();
return false;
}
document.oncontextmenu=stop;
function clear(){
window.location.reload();
}
document.onkeydown =document.onkeyup = document.onkeypress=function(){
clear();
return(false);
}
document.onselectstart=new Function('event.returnValue=false;');
</SCRIPT>
1.解除页面阻塞
2.初始化定义,无论什么。
3.解除监听事件。
4.清空内存(垃圾收集 windows.CollectGarbage())
5.清空macro-task(宏任务)
6.DOM元素activeElement置空。
应该就这些吧。当然,上述的条件中,要根据绑定的内容来加,并不是都需要执行。