Design Pattern Learning - (9. Adaptation Pattern, Proxy Pattern)

After reading the adaptation mode in the book, I feel that it is a function that processes data. This function can be changed according to your needs.

Among them, the code of the adaptation framework is not very understandable, and it is not detailed.



Proxy mode:

All I see is the cross-domain request processed by jsonp, and the use of img's src and script's src to send fields to the cross-domain server, which is useless.

not detailed here,

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326028465&siteId=291194637