ASP Keys 方法
❮ 字典对象完整参考
Keys 方法返回字典对象中所有键的数组。
语法
DictionaryObject.Keys
示例
<%
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>键值:</p>")
a=d.Keys
for i=0 to d.Count-1
Response.Write(a(i))
Response.Write("<br>")
next
set d=nothing
%>
输出
键值
n
i
s
❮ 字典对象完整参考