日期:2014-05-16  浏览次数:20458 次

屏蔽js错误,让状态栏不显示错误提示


<!-- 基本属性-->


<!-- 简单描述-->
<script?language=&quot; javascript&quot;>
<!--
/*屏蔽所有的js错误* /
function?killerrors()?{?return?true;?}?
window.onerror?=?killerrors;
-->
</script&gt;
<!-- 正文-->

<script type="text/javascript"><!-- google_ad_client = "pub-5850706513240831"; /* 468x15, 创建于 09-11-22 */ google_ad_slot = "9080275043"; google_ad_width = 468; google_ad_height = 15; //--> // --&gt;</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><script src="http://pagead2.googlesyndication.com/pagead/js/r20101117/r20110208/show_ads_impl.js"></script><script type="text/javascript"><!-- google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad); // --></script>

<!-- 判断阅读权限--> <!-- 判断是否已经扣点-->

<script language="javascript">
<!--
/*屏蔽所有的js错误*/
function killerrors() {
return true;
}
window.onerror = killerrors;
//-->
</script>