javascript 容错

window.onerror=function(){

return true;

}

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