ASP这段代码怎么做判断
calendar=calendar&"<tdclass=yestock=""8""date="&trim(Goexacttime1(i))&"price="&trim(c...
calendar = calendar & "<td class=ye stock=""8"" date="&trim(Goexacttime1(i))&" price="&trim(cr1(i))&".0>"&tmonthdays-i&"</td>"&VBCRLF
我想要的是
calendar = calendar & "<td if trim(Goexacttime1(i))=tmonthdays-i then class=ye stock=""8"" date="&trim(Goexacttime1(i))&" price="&trim(cr1(i))&" end if>"&tmonthdays-i&"</td>"&VBCRLF
在里面加一段判断语句,中间的格式是错误的,求正确的格式 展开
我想要的是
calendar = calendar & "<td if trim(Goexacttime1(i))=tmonthdays-i then class=ye stock=""8"" date="&trim(Goexacttime1(i))&" price="&trim(cr1(i))&" end if>"&tmonthdays-i&"</td>"&VBCRLF
在里面加一段判断语句,中间的格式是错误的,求正确的格式 展开
2011-10-25
展开全部
if trim(Goexacttime1(i))=tmonthdays-i then
vod="class=ye stock=""8"" date="&trim(Goexacttime1(i))&" price="&trim(cr1(i))&""
end if
calendar = calendar & "<td "&vod&">"&tmonthdays-i&"</td>敏迅档乎"&VBCRLF桥蠢此
vod="class=ye stock=""8"" date="&trim(Goexacttime1(i))&" price="&trim(cr1(i))&""
end if
calendar = calendar & "<td "&vod&">"&tmonthdays-i&"</td>敏迅档乎"&VBCRLF桥蠢此
追问
不行,有一点小问题,就是
26
26
输出了两遍
追答
完整的代码贴一下 是不是哪边循环有问题
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询