切换布局
显示结果
<html> <head> <script type = "text/javascript"> function sayHello() { document.write ("Hello there!"); } </script> </head> <body> <p>点击以下按钮调用 sayHello 函数</p> <form> <input type = "button" onclick = "sayHello()" value = "点击调用"> </form> </body> </html>