115S站长学院 TIY
编辑您的代码:
<html> <head> <script type="text/vbscript"> function myFunction() myFunction = "蓝色" end function </script> </head> <body> <script type="text/vbscript"> document.write("我喜欢的颜色是:" & myFunction()) </script> <p>函数程序可返回结果。</p> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?72e1eb95f3722bd737488ab37f422304"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>
查看结果: