javascript集合的交,並,補,子集的操作實現

可能新的ECMA規範裏已有了這些的實現, 但能自己從頭開始實現,感覺也非常不錯的喲。。。 function Set() { var items = {}; this.has = function(value){ return items.hasOwnProperty(value); }; this.add = function(value){
相關文章
相關標籤/搜索