日期:2014-05-17  浏览次数:22320 次

ASP中的简单的判断语句 急
例如以下帮我看看要怎么写

dim   sx,qi
qi=request( "t2 ")

sx= "14 "or   sx= "21 "or   sx= "31 "or   sx= "48 "

if   sx=qi   then
.
.
.
end   if

------解决方案--------------------
sx=array( "14 ", "21 ", "31 ", "48 ")
for i=o to ubound(sx)
if sx(i)=qi then
...
else
...
end
next
------解决方案--------------------
sx=array( "14 ", "21 ", "31 ", "48 ")
for i=o to ubound(sx)
if sx(i)=qi then
...
else
...
end
next