Jan 18

JS容错代码 不指定

wxxslt , 12:40 , JS , Comments(0) , Trackbacks(0) , Reads(541) , Via Original Large | Medium | Small
    
      如果你在自己的网页中插入JS代码浏览时弹出错误,又不知那里错误,不想修改的话,可以加下面这个容错代码,这样就不会弹出了。

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

Tags:
Add a comment
Emots
emotemotemotemot
emotemotemotemot
emotemotemotemot
emotemotemotemot
emotemotemotemot
Enable HTML
Enable UBB
Enable Emots
Hidden
Remember
Nickname   Password   Optional
Site URI   Email   [Register]