ASP Item 属性

定义和用法

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 bl is: " & d.Item("bl"))
%>

输出:

The value of key bl is: Blue
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南