开发者

Jquery Undo last change to DOM

开发者 https://www.devze.com 2023-02-10 01:33 出处:网络
What is the easiest way to undo last change done to Dom. let\'s say i appended an image or divor we made changes to any of the elements and i w开发者_如何学编程ant to undo the last thing that affected

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 w开发者_如何学编程ant 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

0

精彩评论

暂无评论...
验证码 换一张
取 消