s7上单小鱼人出装:asp问题,请大家帮帮手看看.

来源:百度文库 编辑:高校问答 时间:2024/05/04 07:04:50
<%
if time >= # 12:00:00am # and time <= # 8:00:00am # then
response.write("早晨!")
else
time > # 8:00:00am # and time <= # 12:00:00pm # then
response.write("食佐中午返未啊?")
if
time > #12:00:00pm # and time <=#10:00:00pm # then
response.write("食佐晚返未?")
else
time > #10:00:00pm # and time <#12:00:00am #
response.write("早点训啦!")

end if
%>
这句出现了什么问题啊?为什么不可以运行呢?

晕。。Else的问题。。。你看看可以了吧
<%
if time >= # 12:00:00am # and time <= # 8:00:00am # then
response.write("早晨!")
elseif time > # 8:00:00am # and time <= # 12:00:00pm # then
response.write("食佐中午返未啊?")
elseif time > #12:00:00pm # and time <=#10:00:00pm # then
response.write("食佐晚返未?")
else
response.write("早点训啦!")
end if
%>

你发的代码不全,请发全部代码!!

time(),函数调用方式不对。

if嵌套有问题吧