工厂方式

对象的属性可以在对象创建后定义,所以我们常常写如下的代码。

new Object;
;
;
   4: oProduct.screen=3.5;
function(){
this.color);
   7: };

相关文章: