2009-04-22から1日間の記事一覧
結構使いそうなFactoryパターンのサンプル (function(){// factory class function Order(class) { this.class = class; } Order.prototype.new = function () { return new this.class; }// Product class function Product() {} Product.prototype.execute…
結構使いそうなFactoryパターンのサンプル (function(){// factory class function Order(class) { this.class = class; } Order.prototype.new = function () { return new this.class; }// Product class function Product() {} Product.prototype.execute…