28,389
社区成员
发帖
与我相关
我的任务
分享
D=a & b & c
arrD=split(D,",")
for(i=0 to ubound(arrD)-1)
for(j=i+1 to ubound(arrD)-1)
if arrD(i)=arrD(j) then arrD[j]=""
next
next
D=arrD(0)
for(i=1 to ubound(arrD)-1)
if arrD(i) <> "" then D=D & "," & arrD[i]
next
response.write(D)
D=a & b & c
arrD=split(D,",")
for(i=0 to ubound(arrD)-1)
for(j=i+1 to ubound(arrD)-1)
if arrD(i)=arrD(j) then arrD[j]=""
next
next
D=""
for(i=0 to ubound(arrD)-2)
D=D & arrD[i] & ","
next
D=D & arrD(ubound(arrD)-1)
response.write(D)