response.write"<script language="vbscript">
vbscript问题<%response.write"<scriptlanguage=vbscript>"<!--response.write"m=month(date(...
vbscript问题
<%
response.write"<script language=vbscript>"
<!--
response.write"m=month(date()):y=year(date())"
select case m
case 1,3,5,7,8,10,12
response.write"d=31"
case 2
if (y mod 4=0 and y mod 400=0) or (y mod 100=0 and y mod 400=0) then
response.write"d=29"
else
response.write"d=28"
end if
case else
response.write"d=30"
end select
-->
response.write"</script>"
mm=request("mm")
yy=request("yy")
workmonth=yy& "-" &mm
start=yy& "-" &mm & "-" &"1"
endy=yy& "-" &mm & "-" &d
%>
这个地方endy=yy& "-" &mm & "-" &d怎么D的值取不出来呢?哪错了?
我要取的是VBSCRIPT中的这个地方的D的值呀。例如:response.write"d=30"
怎么才能取到这个D值呀。 展开
<%
response.write"<script language=vbscript>"
<!--
response.write"m=month(date()):y=year(date())"
select case m
case 1,3,5,7,8,10,12
response.write"d=31"
case 2
if (y mod 4=0 and y mod 400=0) or (y mod 100=0 and y mod 400=0) then
response.write"d=29"
else
response.write"d=28"
end if
case else
response.write"d=30"
end select
-->
response.write"</script>"
mm=request("mm")
yy=request("yy")
workmonth=yy& "-" &mm
start=yy& "-" &mm & "-" &"1"
endy=yy& "-" &mm & "-" &d
%>
这个地方endy=yy& "-" &mm & "-" &d怎么D的值取不出来呢?哪错了?
我要取的是VBSCRIPT中的这个地方的D的值呀。例如:response.write"d=30"
怎么才能取到这个D值呀。 展开
3个回答
展开全部
<%
m = Month(Now)
select case m
case 1,3,5,7,8,10,12
response.write"d=31"
case 2
if (y mod 4=0 and y mod 400=0) or (y mod 100=0 and y mod 400=0) then
response.write"d=29"
else
response.write"d=28"
end if
case else
response.write"d=30"
end select
mm=request("mm")
yy=request("yy")
workmonth=yy& "-" &mm
start=yy& "-" &mm & "-" &"1"
endy=yy& "-" &mm & "-" &d
%>
m = Month(Now)
select case m
case 1,3,5,7,8,10,12
response.write"d=31"
case 2
if (y mod 4=0 and y mod 400=0) or (y mod 100=0 and y mod 400=0) then
response.write"d=29"
else
response.write"d=28"
end if
case else
response.write"d=30"
end select
mm=request("mm")
yy=request("yy")
workmonth=yy& "-" &mm
start=yy& "-" &mm & "-" &"1"
endy=yy& "-" &mm & "-" &d
%>
展开全部
response.write"d=30"
换成response.write"dim d"
response.write"d=30"
换成response.write"dim d"
response.write"d=30"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
我眼神不好,怎么没看到你给D赋值呢
加赋值语句d=30
response.write"d=30"这只是输出一个字符串
加赋值语句d=30
response.write"d=30"这只是输出一个字符串
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询