日期:2014-05-16 浏览次数:20749 次
<%有待改进,先实现功能先。
Dim sTrArr,arr,i,l,temp,str
sTrArr="1,2,4,6,1,1,4"
temp=","
arr = Split(sTrArr,",")
For i=0 To UBound(arr)
str = arr(i)
If InStr(temp,","&str&",")=0 Then
If UBound(Split(","&sTrArr&",",","&str&","))>1 Then
Response.write "重复"&str&"的位置:"
For l=0 To UBound(arr)
If str=arr(l) Then Response.write l&","
Next
Response.write "<br/>"
End If
temp = temp&str&","
End If
Next
%>