当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Items 方法
The Items method returns an array of all the items in a Dictionary object.
ASP Items的作用是以一个数组的形式返回字典对象中所有的元素(items)。
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 |