Javascipt自定义哈希表

Javascipt自定义哈希表

2019-11-13 xenice 563 阅读

function Hash() { var self = this; self.data = []; self.add = function(key, value){ self.data.push([key, value]); }; self.get = function(key){ var arr = self.d...