ASP Items 方法
定义和用法
Items 方法返回包含 Dictionary 对象中的所有项的一个数组。
语法:
DictionaryObject.Items
实例
<%dim d,a,iset d=Server.CreateObject("Scripting.Dictionary")d.Add "c","China"d.Add "i","Italy"d.Add "s","Sweden"Response.Write("<p>项的值为:</p>")a=d.Itemsfor i=0 to d.Count-1Response.Write(a(i))Response.Write("<br />")nextset d=nothing%>
输出:
项的值为:ChinaItalySweden