function AA (){
var r={};
this.get = function(key){
return r[key];
}
this.put = function(key,x){
r[key] = x;
}
this.each = function (Func) {
for (var v in r) {
Func(v, r[v]);
}
}
this.remove = function (key) {
delete r[key];
}
}
时间: 2024-12-12 23:49:12