Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

命令模式 (Command)

将一个请求封装为一个对象,从而使你可以用不同的请求对客户进行参数化。

动机

代码示例

适用场景

优缺点

笔记与思考