标签:
class Dictionary {
[index: string]: string;
}
class Test {
public run() {
var parameters = new Dictionary();
parameters["A"] = "A01";
parameters["B"] = "B01";
parameters["C"] = "C01";
for (var key in parameters) {
alert(
"key=" + key + "\n" +
"value=" + parameters[key] + "\n"
);
}
}
}
var test = new Test();
test.run();
标签:
原文地址:http://www.cnblogs.com/clark159/p/4627223.html