自强学堂
自强学堂:学习、分享、让你更强!
ASP 实例HTMLCSSJAVASCRIPTJQUERYSQLPHPBOOTSTRAPANGULARXML
 

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 对象参考手册