exceptionexample.htm

来自「这是javascript高级程序设计的源码」· HTM 代码 · 共 21 行

HTM
21
字号
<html>
    <head>
        <title>Exception Test</title>
       <script type="text/javascript">
            function handleLoad() {
                 window.openMySpecialWindow();
                 alert("Loaded");
            }

            function handleClick() {
                alert("Clicked");
            }
        </script>
    </head>
    <body onload="handleLoad()">
        <p>Even though an error occurs when the page is loaded, you can still
        click the button and have it work correctly.</p>
        <input type="button" value="Click Me" onclick="handleClick()" />
    </body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?