a. loseloseHash.js: 不考虑冲突的散列表+“lose lose”散列函数git
b. djb2Hash.js: 不考虑冲突的散列表+djb2散列函数 github
c. linkedHash.js: 分离连接解决冲突的散列表+“lose lose”散列函数 算法
d. linearHash.js: 线性探查的散列表+“lose lose”散列函数 数组
function ValuePair(key,value){ this.key = key; this.value = value; this.toString = function(){ return '['+this.key+'-'+this.value+']'; //方便进行观察 } }