ASP Item 属性

asp item 属性

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

item 属性设置或返回 dictionary 对象中某个项目的值。

语法

dictionaryobject.item(key)[=newitem]

参数 描述
key 必需的。与 item 相关联的 key。
newitem 可选的。规定与 key 相关联的值。

实例

<%
dim d
set d=server.createobject("scripting.dictionary")
d.add "re","red"
d.add "gr","green"
d.add "bl","blue"
d.add "pi","pink"
response.write("the value of key pi is: " & d.item("pi"))
%>

输出:

the value of key pi is: pink

dictionary 对象参考手册 完整的 dictionary 对象参考手册
相关文章