Javascript 裡的陣列已實作Map物件,但仍可自己實作Stack ... this.set = function(key, value) { this.collection[key] = value; this.count++; }; .
確定! 回上一頁