设置一个键

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

dim d

set d=Server.CreateObject("Scripting.Dictionary")

d.Add "n", "Norway"

d.Add "i", "Italy"

d.Key("i") = "it"

Response.Write("The key i has been set to it, and the value is: " & d.Item("it"))

set d=nothing

%>

 

</body>

</html>

结果:

The key i has been set to it, and the value is: Italy

相关文章