javascript 容错

window.onerror=function(){
return true;
}

系统有onerror报错的代码,只要重新一下就可以在javascript错误的时候返回真(true)

原文地址:https://www.cnblogs.com/tongchuanxing/p/4192022.html