28,406
社区成员
发帖
与我相关
我的任务
分享
<%
n = "1,2,3,4,5,6,12,11,34,23,"
i = "1,11,3,4,13"
a = Split(n, ",")
Set dic = CreateObject("Scripting.Dictionary")
For k=0 To UBound(a)
If a(k)<> "" Then dic.Add "_" & a(k), a(k)
Next
a = Split(i, ",")
For k=0 To UBound(a)
If a(k)<> "" Then
If dic.Exists("_" & a(k)) Then
dic.Remove "_" & a(k)
Else
Response.Write a(k) & "不存在"
End If
End If
Next
items = dic.Items()
Set dic = Nothing
Response.Write "最后得到: " & Join(items, ",")
%>