Javascript的异常捕捉
<script language="javascript" type="text/javascript">
function TestException()
{
try
{
throw new Error("any Exception");
}
catch(ex)
{
alert(ex.number+"\n"+ex.description);
}
finally
{
alert("end");
}
}
</script>
function TestException()
{
try
{
throw new Error("any Exception");
}
catch(ex)
{
alert(ex.number+"\n"+ex.description);
}
finally
{
alert("end");
}
}
</script>
浙公网安备 33010602011771号