摘要:
var dic:Dictionary = new Dictionary();dic["1"] = 10;dic["2"] = 20; //for..in 循环用来基于键进行循环访问for (var key in dic){ //输出: //1 //2 trace(key);} //for each..in 循环用来基于与每个键关联的值进行循环访问for each(var value in dic){ //输出: //10 //20 trace(value);} 阅读全文
posted @ 2013-03-24 14:32 Warrior Sun 阅读(393) 评论(0) 推荐(0) 编辑