<html> <head> <title>Dictionary组建示例</title> </head> <body> <% set studic=server.createobject("scripting.dictionary") studic.add "name","jack" studic.add "age","22" studic.add "sex","male" studic.add "major","statitics" for each whatever in studic response.write whatever &"=" response.write studic.item(whatever)&" " next %> </body> </html> 请问上面的whatever的是什么意思呢
它是一个具体组件的使用 至于放在那个for each的循环里,是将结果读取出来了 Scripting.Dictionary这个类是类似Collection(集合)的一种数据类型, 允许使用key作为索引将任何object顺序的存放在集合中.