©
Ce document utiliseManuel du site Web PHP chinoisLibérer
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("Item values:
")
a=d.Items
for i=0 to d.Count-1
Response.Write(a(i))
Response.Write("
")
next
set d=nothing
%>
输出:
Item values:
Norway
Italy
Sweden