Javascript 异常处理示例

来源:互联网 发布:sql中distinct是啥意思 编辑:程序博客网 时间:2024/05/16 01:57
try {    document.write("begin");    document.getElementById("abc").value = "";}catch (e) {    alert(e.message);}finally {    document.write("end");}