文档分类
javascript一系列学习笔记
}
catch(ex)
{
document.write(ex.message); }
</script>
</head>
<body style="overflow:auto;">
<br><br>//----Body部分!----<br>
</body>
</html>
运行结果:
15.3. finally语句
Finally语句不能单独执行,必须与try语句结合使用,代码 如下:
Try
Statement1
Catch(ex)