首页 >> 网页技术 > asp技术 >> 详细内容
网页技术
 
asp技术 >> 正文
判断变量属于某个集合
日期:2017/6/15 
<%dim i  
i=request("i")  
b="1,2,3,5,6,4,7,8,9,11"  
if InStr(","&b&",",","&i&",")> 0 then '大于0说明i在b集合里  
response.write"正确"  
response.end  
else  
response.write"错误"  
end if%>