On Error Resume NextIf Err.Number>0 Then
    Response.Write Err.Description
    Response.End
End If

解决方案 »

  1.   

    这是vbscript的处理我要javascipt 的处理!!
      

  2.   

    window.onerror = function()
    {
      //
    }
      

  3.   

    LxcJie(肖冲) 具体怎么用呀?谢谢!!
      

  4.   

    //////////////////////////////////////////////////////////////////
     function reportError(msg,url,line) {
    var str = "You have found an error as below: \n\n";
    str += "Err: " + msg + " on line: " + line;
    alert(str);
    return true;
    }window.onerror = reportError;