摘要: 1.创建型模式 >工厂模式:将创建对象过程单独封装,封装成方法 const Animal = function(this,name='',age=0){ this.name = name, this.age = age } const Tree = function(this,name='',tal 阅读全文
posted @ 2022-07-15 17:42 jqynr 阅读(38) 评论(0) 推荐(0)