源代码:
<% dim d,a,i,s set d=Server.CreateObject("Scripting.Dictionary") d.Add "n", "Norway" d.Add "i", "Italy" Response.Write("
The values of the items are:
") a=d.Items for i = 0 To d.Count -1 s = s & a(i) & "
" next Response.Write(s) set d=nothing %>
运行结果:
<% dim d,a,i,s set d=Server.CreateObject("Scripting.Dictionary") d.Add "n", "Norway" d.Add "i", "Italy" Response.Write("
The values of the items are:
") a=d.Items for i = 0 To d.Count -1 s = s & a(i) & "
" next Response.Write(s) set d=nothing %>