组合模式要是用在复杂类的抽离、运行时切换不同方法等,比较难理解,这里 (opens new window) 讲的不错。

目前开发中也没有遇到过,此处留坑。

Last Updated: 3/6/2022, 4:21:36 PM