摘要: 设计模式有 工厂模式:创造多个相同的属性,方法的对象的函数。 function factory(engie, color,run) { this.engie = engie; this.color = color; this.run = run } var carA = new factory("一 阅读全文
posted @ 2021-03-07 16:49 不想飞的小鸟 阅读(77) 评论(0) 推荐(0) 编辑