//使用构造器加原型 模式实现一个Map ,网上有很多实现了,但是都是通过 构造器来实现, 这样每new 一个HashMap ,就会造成 重复函数的创建。造成资源浪费
//var size=0;
var entry=new Object;function HashMap(){
this.length=0;
};
HashMap.prototype.put=function(key,value){
entry[key]=value;
this.length++;
}
HashMap.prototype.get=function(key){
re