返回某个项目的值

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

dim d

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

d.Add "n", "Norway"

d.Add "i", "Italy"

Response.Write("The value of the item n is: " & d.item("n"))

set d=nothing

%>

 

</body>

</html>

结果:

The value of the item n is: Norway

相关文章