undo-redo Demo show how to implement undo/redo pattern See related article here: https://zhuanlan.zhihu.com/p/43743782