摘要:
众所周之,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... 阅读全文