编辑文本后点击显示结果
返回网页教程首页
<html> <head> <title>VBScript代码示例-Function过程</title> <script type="text/vbscript"> Function Celsius(fDegrees) Celsius = (fDegrees - 32) * 5 / 9 End Function </script> </head> <body> <p>温度转换函数</p> <script type="text/vbscript"> MsgBox "华氏98度转换成摄氏度为" & Celsius(98) </script> </body> </html>