有关变量的问题
<% now_day=Now()
Now_day=day(now_day)
Now_da=day(now_day)
Response.Write(Now_da)
Response.Write(Now_day)
%>
为什么输出的是2021而不是2121
因为:now_da=day(now_day)等价于:now_da=day(21)
结果就now_da=20
2006.4.21
<%
now_day=Now()
Response.Write day((Now_day))&"<br>"
Response.Write day(day((Now_day)))&"<br>"
Response.Write day(day(day(now_day)))&"<br>"
Response.Write day(day(day(day(now_day))))
%>
结果出来:
22
21
20
19
2006.04.22
[此贴子已经被作者于2006-4-22 1:52:24编辑过]