Javascipt自定义哈希表

Javascipt自定义哈希表

2019-11-13 xenice 1034 阅读

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