Jquery Undo last change to DOM

What is the easiest way to undo last change done to Dom. let's say i appended an image or div or we made changes to any of the elements and i want to undo the last thing that affected the dom.


You can clone previously the container and then to undo just have to clean the container and put the dom cloned.

http://api.jquery.com/clone/
http://api.jquery.com/empty

链接地址: http://www.djcxy.com/p/4780.html

上一篇: 龙卷风异步处理程序

下一篇: Jquery撤消对DOM的最后更改