---
title: "十五、备忘录模式"
author: "bolan392"
date: "2011-11-23T08:54:49Z"
tags: []
categories: ["企业架构"]
slug: "untitled"
draft: false
lastmod: "2011-11-23T08:54:49Z"
id: 1273283
url: "https://bolan392.iteye.com/blog/1273283"
---

备忘录（Memento）:在不破坏封装性的前提下，捕获一个对象的内部状态，并在该对象之外保存这个状态。这样以后就可将该对象恢复到原先保存的状态。备忘录模式主要用于还原或可撤销时。