欢迎您 本站地址:  
返回首页   返回编程教学   彩虹屁  听首歌  警世通言  武打音效  女生头像小众  上传下载源码  驾驶证模拟考试  珍味篇 

ASP Keys 方法


Dictionary 对象参考手册 完整的 Dictionary 对象参考手册

Keys 方法返回一个包含 Dictionary 对象中所有 key 的数组。

语法

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>Key values:</p>")
a=d.Keys
for i=0 to d.Count-1
??Response.Write(a(i))
??Response.Write("<br>")
next

set d=nothing
%>

输出:

Key values:

n
i
s


Dictionary 对象参考手册 完整的 Dictionary 对象参考手册
小库提示

扫描下方二维码,访问手机版。