源代码:
<% dim d set d=Server.CreateObject("Scripting.Dictionary") d.Add "n", "Norway" d.Add "i", "Italy" if d.Exists("n")= true then Response.Write("Key exists.") else Response.Write("Key does not exist.") end if set d=nothing %>
运行结果:
<% dim d set d=Server.CreateObject("Scripting.Dictionary") d.Add "n", "Norway" d.Add "i", "Italy" if d.Exists("n")= true then Response.Write("Key exists.") else Response.Write("Key does not exist.") end if set d=nothing %>