原型模式(Prototype Pattern)与对象成员变量复制的问题 核心就是`clone()`方法,返回`Prototype`对象的复制品。 Posted on October 3, 2022 原型模式(Prototype Pattern)与对象成员变量复制的问题 [Read More] Tags: 设计模式
总结实现带有 callback 的迭代器模式的几个关键点: 声明 callback 函数类型,以 Record 作为入参。 Posted on October 2, 2022 总结实现带有 callback 的迭代器模式的几个关键点: [Read More] Tags: 设计模式