注册 登录
编程论坛 ASP技术论坛

为什么这段程序不能运行?

yuanming_003 发布于 2010-03-02 10:16, 741 次点击
这段程序不能运行,还有”if left(theTime,2)>12“它的用法是什么?
<!--File Name:time.asp -->
<%@Language=VBScript%>
<html>
<head>
<title>示例 1   </title>
</head>
<body>
<h1>欢迎访问我的主页</h1>
<%
totay=Date()
ttime=Time()
if left(theTime,2)>12 then
response.write"<h3>下午好!</h3>"
else
response.write"<h3>下午好!</h3>"
end if
%>
今天是<%=totay %>时间<%=theTime %>
</body>
</html>
4 回复
#2
邪之舞2010-03-02 10:50
theTime没有值!
#3
javaxingxing2010-03-02 10:52
ttime  改成theTime

[ 本帖最后由 javaxingxing 于 2010-3-2 10:53 编辑 ]
#4
qpjiangjie2010-03-04 14:14
没有thetime变量么, 所有不会运行,
#5
yuanming_0032010-03-09 14:27
回复 3楼 javaxingxing
谢谢!
1