摘要:
原文地址:适用js数组存放键值对map作者:枫悬//自定义Map对象function Map(){this.keys = new Array();this.data = new Array();this.put = function(key,value){if(this.data[key] == null){this.keys.push(value);}this.data[key] = value;};this.get = function(key){return this.data[key];};this.remove = function(key){this.keys.remove(key 阅读全文