请问如何解决以下bug???
A:----------------------------------
<%
ab = "1,21,3"
a = 2
If instr(ab, a) Then
Response.Write("存在")
Else
Response.Write("不存在")
End If
%>
<br><br><br>
B:----------------------------------
<%
ab = "21,34,5,6,72,8"
aa="4,"
if instr(","&ab&",",aa)=0 then
Response.Write("不存在")
else
Response.Write("存在")
end if
%>
<br><br><br>
C:----------------------------------
<%
ab="1,21,31,4"
a="3"
if instr(1,ab,a)>0 then
response.write "存在"
else
response.write "不存在"
end if
%>
以上的结果是
A:---------------------------------- 存在
B:---------------------------------- 存在
C:---------------------------------- 存在
但实际是错误的。
A: 必须 a=21 才能提示存在
B: 必须 aa="34,"才能提示存在
C: 必须 a="31" 才能提示存在
以上怎么改了,这是我原来的问题那些人回答都存在bug 的
原来问题
http://community.csdn.net/Expert/topic/3514/3514817.xml?temp=.9959986
http://community.csdn.net/Expert/topic/3514/3514679.xml?temp=1.833743E-02
http://community.csdn.net/Expert/topic/3513/3513881.xml?temp=.8307154