JavaScript try catch 语句 JavaScript document all 属性 javascript forin 循环 JavaScript try catch 语句 <html> <head> <script type = "text/javascript"> <!-- function myFunc() { var a = 100; alert("Value of variable a is : " + a ); } //--> </script> </head> <body> <p>Click the following to see the result:</p> <form> <input type = "button" value = "Click Me" onclick = "myFunc();" /> </form> </body> </html> JavaScript document all 属性 javascript forin 循环