奥诺拉假体好吗:ASP 如何判断字符串是否在某组里的问题..请指教.

来源:百度文库 编辑:高考问答 时间:2024/05/04 15:05:53
我的意思是这样的
A="111"
mystr="444,333,222,111"
mystr=split(mystr,",")
if A 在 mystr组里面 then
response.write "在里面"
else
response.write "不在里面"
end if

我就想知道ASP怎么去写If判断的那一句?

请指教...谢谢...

mystr=split(mystr,",")
for i=0 to UBound(mystr)
if instr(mystr(i),"A")>=1 then
response.write("在里面")
esle
response.write("不在里面")
end if
next

if(mystr.indexOf(A)!=-1)
{
response.write("在里面");
}
else
{
response.write("不在里面");
}