首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

ASP中的简单的判断语句 急解决方法

2012-02-04 
ASP中的简单的判断语句急例如以下帮我看看要怎么写dimsx,qiqirequest( t2 )sx 14 orsx 21 orsx

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

热点排行