源代码 :
点击运行
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> Function myfunction() myfunction=Date() End Function document.write("Today's date: ") document.write(myfunction()) </script> <p>A Function procedure can return a result.</p> </body> </html>
运行结果