也叫快照模式 <!-- more --> #### 有 undo 的场景,类似于 git 的 revert,必然存储了其上一次的 commit,才能实现撤销的效果