如何在ASP / VBScript中执行此类操作?
Dim pairs
pairs= Dictionary(String, Integer)()
For Each item As String In storage
Dim temp
temp = item.Split(".")
pairs.Add(temp(0), temp(1))
Next
答案 0 :(得分:3)
使用“Scripting.Dictionary”对象,如下所示:
set objPairs = Server.CreateObject("Scripting.Dictionary")
objPairs.add temp(0), temp(1)