切换布局
显示结果
<html> <head> <script type = "text/javascript"> function concatenate(first, last) { var full; full = first + last; return full; } function secondFunction() { var result; result = concatenate('Zara', 'Ali'); document.write (result ); } </script> </head> <body> <p>点击以下按钮调用函数</p> <form> <input type = "button" onclick = "secondFunction()" value = "调用函数"> </form> </body> </html>