2009/01/18
| |
    
      如果你在自己的网页中插入JS代码浏览时弹出错误,又不知那里错误,不想修改的话,可以加下面这个容错代码,这样就不会弹出了。

<SCRIPT LANGUAGE="JavaScript">
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
</SCRIPT>

不指定 2009/01/18 12:40, wxxslt, 网站建设 » JS, 评论(0), 阅读(814)
发表评论
表情
emotemotemotemot
emotemotemotemot
emotemotemotemot
emotemotemotemot
emotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]
               

 
Theme by Marshal. Powered by Bo-Blog 2.1.1 ReleaseCode detection by Bug.Center.Team