<% '递归实现无重复组合 Dim aNum aNum =Array("1","2","3","4") Call Combination(0, aNum, "") Function Combination(n_Cur, a_Num, s) Dim i, bound bound =UBound(a_Num) If n_Cur > bound Then Response.Write s &"<br />" ExitFunction EndIf For i =0To bound If IsExists(s, a_Num(i)) =FalseThen Call Combination(n_Cur+1, a_Num, s & a_Num(i)) EndIf Next End Function Function IsExists(s_Parent, s_Sub) IfInStr(s_Parent, s_Sub) >0Then IsExists =True Else IsExists =False EndIf End Function %>