今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Memento pattern
- [Instructor] The memento pattern is basically providing temporary state of an object and restoration of that object from a conversion into a different format or whatnot. It is often used into serialization and deserialization of data. In this use case, an object is typically in a JavaScript object, where we need to transmit the data to some type of back-end, where we serialize this object into JSON for streaming it through HTTP protocols. Then, when this object hits the back-end server, or when we get a response back from the server through HTTP, we might need to deserialize the JSON object back into a JavaScript object for consumption into our application. Well, this is basically the memento pattern in action, where the data never loses its accuracy, despite several conversions in between formats.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
(已锁定)
What are behavioral patterns?1 分钟 4 秒
-
(已锁定)
Observer pattern2 分钟 36 秒
-
(已锁定)
State pattern3 分钟 6 秒
-
(已锁定)
Chain of responsibility1 分钟 30 秒
-
(已锁定)
Iterator pattern3 分钟 44 秒
-
(已锁定)
Strategy pattern1 分钟 36 秒
-
(已锁定)
Memento pattern53 秒
-
(已锁定)
Mediator pattern1 分钟 32 秒
-
(已锁定)
Command pattern2 分钟 24 秒
-
(已锁定)
-