debugexample6.htm

来自「JavaScript程 序 设 计 之 设 计 的源代码。」· HTM 代码 · 共 28 行

HTM
28
字号
<html>
    <head>
        <title>Debug Example</title>
        <script type="text/javascript">
        
                function test_function() {
                    opera.postError("Entering function.");
                
                    var iNumber1 = 5;
                    var iNumber2 = 10;
                
                    opera.postError ("Before calculation.");
                    var iResult = iNumber1 + iNumber2;
                    opera.postError ("After calculation.");
                
                    opera.postError ("Leaving function.");
                }
                
                test_function();


        </script>
    </head>
    <body>
        <p>This example works in Opera only.</p>
    </body>
</html>

⌨️ 快捷键说明

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