|
主题: 初学,书上的例子看不懂!
|
iridium
职务:普通成员
等级:1
金币:0.0
发贴:43
|
#12003/7/30 21:51:17
我也知道书上是错啦!但是还是无法调试成功,希望有人指点迷津,多谢! Today is <%=now%>. The value of Weekday(now) is <%=Weekday(now)%>,and vbSaturday is <%=vbSaturday %> <% if Weekday(now)=vbSaturday then Response.write"It's Ture"%> Have a good Weekend! <% else Response.write"It's False"%> Hang in there,the week will get better!" End if %>
|
文远
职务:普通成员
等级:5
金币:1.0
发贴:2441
|
#22003/7/31 10:38:08
Today is <%=now%>. The value of Weekday(now) is <%=Weekday(now)%>,and vbSaturday is <%=vbSaturday %>
<% if Weekday(now)=vbSaturday then Response.write"It's Ture"%> Have a good Weekend! <% else Response.write"It's False" Hang in there,the week will get better!" End if %> 符号位置错误 多了一个
编辑历史:[这消息被文远编辑过(编辑时间2003-07-31 10:41:02)]
|
iridium
职务:普通成员
等级:1
金币:0.0
发贴:43
|
#32003/7/31 11:49:05
还是不行,更本打不开站点!显示是“Http500错误”,“无法显示网页”。偶是在Win2000+IIS5,用DW MX用Vbscript设置站点属性!
|
iridium
职务:普通成员
等级:1
金币:0.0
发贴:43
|
#42003/7/31 11:52:44
但是局部又可以 Today is <%=now%>. The value of Weekday(now) is <%=Weekday(now)%>. 奇怪中???
|
缺缺
职务:管理员
等级:8
金币:41.0
发贴:9620
|
#52003/7/31 12:05:39
Today is <%=now%>. The value of Weekday(now) is <%=Weekday(now)%>,and vbSaturday is <%=vbSaturday %>
<% if Weekday(now)=vbSaturday then Response.write"It's Ture" %> Have a good Weekend! <% else Response.write"It's False" %> Hang in there,the week will get better! <% End if %>
|
初九
职务:普通成员
等级:1
金币:0.0
发贴:22
|
#62003/7/31 13:48:25
Today is <%=now%>. The value of Weekday(now) is <%=Weekday(now)%>,and vbSaturday is <%=vbSaturday %> <% if Weekday(now)=vbSaturday then Response.write "It's Ture, Have a good Weekend!" else Response.write "It's False, Hang in there,the week will get better!" End if %>
|
布鲁斯狼
职务:普通成员
等级:2
金币:11.0
发贴:377
|
#72003/8/5 11:28:43
文件后缀是.asp 配置你的iis 输入你的本地地址测试!
|
iridium
职务:普通成员
等级:1
金币:0.0
发贴:43
|
#82003/8/6 0:10:55
谢谢楼上各位,如allinhands、cnbruce所写。
已经解决!
|