源代码:
<% dim d,a,i,s set d=Server.CreateObject("Scripting.Dictionary") d.Add "n", "Norway" d.Add "i", "Italy" Response.Write("
The value of the keys are:
") a=d.Keys 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 value of the keys are:
") a=d.Keys for i = 0 To d.Count -1 s = s & a(i) & "
" next Response.Write(s) set d=nothing %>