ASP Items 方法
2018-09-12 07:31 更新
ASP Items 方法
完整的 Dictionary 对象参考手册
Items 方法返回一个包含 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
%>
输出:
Item values:
Norway
Italy
Sweden
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
%>
输出:
Item values:
Norway
Italy
Sweden
完整的 Dictionary 对象参考手册
以上内容是否对您有帮助:
更多建议: