判断变量属于某个集合
日期:2017-06-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%>
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%>