源代码:
<% dim d, a, s, i set d=Server.CreateObject("Scripting.Dictionary") d.Add "n", "Norway" d.Add "i", "Italy" Response.Write("The number of key/item pairs is: " & d.Count) set d=nothing %>
运行结果:
<% dim d, a, s, i set d=Server.CreateObject("Scripting.Dictionary") d.Add "n", "Norway" d.Add "i", "Italy" Response.Write("The number of key/item pairs is: " & d.Count) set d=nothing %>