×
ASP 教程ASP 简介ASP 安装ASP 语法ASP 变量ASP 程序ASP 表单ASP CookiesASP SessionASP ApplicationASP #includeASP Global.asaASP 发送电子邮件

ASP 对象

ASP ResponseASP RequestASP ApplicationASP SessionASP ServerASP ErrorASP FileSystemASP TextStreamASP DriveASP FileASP FolderASP DictionaryASP ADO

ASP 组件

ASP AdRotatorASP BrowserCapASP Content LinkingASP Content Rotator

ASP 与 AJAX

AJAX 简介AJAX ASPAJAX 数据库

ASP 总结 & 实例

ASP 快速参考ASP 总结ASP 实例

ASP Key 属性


ASP Dictionary 对象ASP Dictionary 对象


Key 属性在 Dictionary 对象中为已有的 key 设置新值。

语法

DictionaryObject.Key(key)=newkey

参数 描述
key 必需的。需修改的 key 的名称。
newkey 必需的。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"
d.Key("re")="r"
Response.Write("The value of key r is: " & d.Item("r"))
%>

输出:

The value of key r is: Red

ASP Dictionary 对象ASP Dictionary 对象


分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)