摘要: 众所周之,js是没有Map类的,要想用还得自己封装一个。(function(win) { var Map = function() { this.count = 0; this.entrySet = {}; }; var proto = Map.prototype; proto.size = function() { return this.count; }; proto.isEmpty = function() { return this.count === 0; }; proto.con... 阅读全文
posted @ 2012-07-16 22:53 水之原 阅读(4500) 评论(1) 推荐(1) 编辑