最新的Web开发教程
 

ASP项目方法


<完整字典对象参考

所述物品方法返回在Dictionary对象中的所有项的数组。

句法

DictionaryObject.Items

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"

Response.Write("<p>Item values:</p>")
a=d.Items
for i=0 to d.Count-1
  Response.Write(a(i))
  Response.Write("<br>")
next

set d=nothing
%>

Output:

Item values:

Norway
Italy
Sweden

<完整字典对象参考