asp调用SUB函数
ASP菜鸟,刚开始学ASP,为什么在IIS中浏览,不会提示输入框,直接弹出弹框,可我并没有传值啊,得出的数值是怎么得来的呢?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>调用FUNCTIO函数</title>
<script language="vbscript">
Sub ConvertTemp()
temp=InputBox("请输入华氏温度",1)
MsgBox "温度为" &Celsius(temp) & "摄氏度"
End Sub
Function Celsius(fDegrees)
Celsius=(fDegrees-32)*5/9
End Function
ConvertTemp
</script>
</head>
<body>
</body>
</html>