📄 trycatch.htm
字号:
<HTML>
<BODY>
<SCRIPT LANGUAGE=JavaScript>
try
{
alert('This is code inside the try clause');
alert('No Errors so catch code will not execute');
}
catch(exception)
{
if (exception.description == null)
{
alert("Error is " + exception.message)
}
else
{
alert("Error is " + exception.description);
}
}
</SCRIPT>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -