摘要: js设计模式 1.工厂模式 function Person(name) { this.name = name; } function Car(model) { this.model = model } // 根据选择的类类型来创建实例对象(只需把类都挂载此工厂函数的原型上,再调用) function 阅读全文
posted @ 2022-05-03 21:54 star*时光£裔℡ 阅读(39) 评论(0) 推荐(0) 编辑