调试运行
<html> <head> <title>例外处理</title> </head> <body> <script language="javascript"> <!-- try{ a[1] = 10; }catch(e){ alert("错误:"+e); } --> </script> </body> </html>