//网 页 捕捉错误<script> window.onerror = function(sMessage, sUrl, sLine){ //捕捉错误 alert(sMessage + "---------" + sUrl + "-----------" + sLine); return true; } </script>