<script language="javascript">
function killErrors(){
try{
tmp="";
for(var i=0;i<arguments.length)
tmp+=i+":"+arguments[i]+"<br/>";
alert(tmp); }catch(e){}
return true;
}
window.onerror = killErrors;
function displayErrorMsg(e)
{
tmp="<hr>";
for(x in e)
{
tmp+=""+x+"=>"+e[x]+"<br/>/n";
}
alert(tmp);
}
document.get("a").value="";
try{
document.get("a").value="";
}catch(e)
{
displayErrorMsg(e);
}
</script>
我的QQ群:
PHPer&Webgame&移动开发,群号:95303036