Introduction - If you have any usage issues, please Google them yourself
Packet : JS设计模式Apress.Pro.JavaScript.Design.Patterns.RETAiL.eBOOk-sUppLeX随书源码.zip filelist
Source Code/
Source Code/Chapter01/
Source Code/Chapter01/1.01 - The flexibility of JavaScript.js
Source Code/Chapter01/1.02 - Functions as first-class objects.js
Source Code/Chapter01/1.03 - The mutability of objects.js
Source Code/Chapter02/
Source Code/Chapter02/2.01 - Describing interfaces with comments.js
Source Code/Chapter02/2.02 - Emulating interfaces with attribute checking.js
Source Code/Chapter02/2.03 - Emulating interfaces with duck typing.js
Source Code/Chapter02/2.04 - The interface implementation for this book.js
Source Code/Chapter02/2.05 - The Interface class.js
Source Code/Chapter02/2.06 - When to use the Interface class.js
Source Code/Chapter02/2.07 - An example illustrating the use of the Interface class.js
Source Code/Chapter03/
Source Code/Chapter03/3.01 - Book example class.js
Source Code/Chapter03/3.02 - Fully exposed object.js
Source Code/Chapter03/3.03 - Private methods with underscores.js
Source Code/Chapter03/3.04 - Scope, nested functions, and closures.js
Source Code/Chapter03/3.05 - Private methods with closures.js
Source Code/Chapter03/3.06 - Static members.js
Source Code/Chapter03/3.07 - Constants.js
Source Code/Chapter04/
Source Code/Chapter04/4.01 - Classical inheritance.js
Source Code/Chapter04/4.02 - The prototype chain.js
Source Code/Chapter04/4.03 - The extend function.js
Source Code/Chapter04/4.04 - Prototypal inheritance.js
Source Code/Chapter04/4.05 - Asymmetrical reading and writing.js
Source Code/Chapter04/4.06 - The clone function.js
Source Code/Chapter04/4.07 - Mixin classes.js
Source Code/Chapter04/4.08 - The augment function.js
Source Code/Chapter04/4.09 - Edit-in-place example, classical.js
Source Code/Chapter04/4.10 - Edit-in-place example, prototypal.js
Source Code/Chapter04/4.11 - Edit-in-place example, mixin.js
Source Code/Chapter05/
Source Code/Chapter05/5.01 - Basic structure of the singleton.js
Source Code/Chapter05/5.02 - Namespacing.js
Source Code/Chapter05/5.03 - Wrappers for page specific code.js
Source Code/Chapter05/5.04 - Private methods with underscores.js
Source Code/Chapter05/5.05 - Private methods with closures.js
Source Code/Chapter05/5.06 - Comparing the two techniques.js
Source Code/Chapter05/5.07 - Lazy instantiation.js
Source Code/Chapter05/5.08 - Branching.js
Source Code/Chapter05/5.09 - Creating XHR objects with branching.js
Source Code/Chapter06/
Source Code/Chapter06/6.01 - Introduction to chaining.js
Source Code/Chapter06/6.02 - The structure of the chain.js
Source Code/Chapter06/6.03 - Building a chainable JavaScript library.js
Source Code/Chapter06/6.04 - Using callbacks.js
Source Code/Chapter07/
Source Code/Chapter07/7.01 - The simple factory.js
Source Code/Chapter07/7.02 - The factory pattern.js
Source Code/Chapter07/7.03 - XHR factory example.js
Source Code/Chapter07/7.04 - Specialized connection objects.js
Source Code/Chapter07/7.05 - Choosing connection objects at run-time.js
Source Code/Chapter07/7.06 - RSS reader example.js
Source Code/Chapter08/
Source Code/Chapter08/8.01 - Event listener example.js
Source Code/Chapter08/8.02 - Other examples of bridges.js
Source Code/Chapter08/8.03 - Bridging multiple classes together.js
Source Code/Chapter08/8.04 - Building an XHR connection queue.js
Source Code/Chapter08/8.05 - XHR connection queue example page.html
Source Code/Chapter08/8.06 - Where have bridges been used?.js
Source Code/Chapter09/
Source Code/Chapter09/9.01 - Form validation.js
Source Code/Chapter09/9.02 - Adding operations to FormItem.js
Source Code/Chapter09/9.03 - Adding classes to the hierarchy.js
Source Code/Chapter09/9.04 - Image gallery example.js
Source Code/Chapter10/
Source Code/Chapter10/10.01 - Some facades you probably already know about.js
Source Code/Chapter10/10.02 - Facades as convenience methods.js
Source Code/Chapter10/10.03 - Setting styles on HTML elements.js
Source Code/Chapter10/10.04 - Creating an event utility.js
Source Code/Chapter11/
Source Code/Chapter11/11.01 - Characteristics of an adapter.js
Source Code/Chapter11/11.02 - Adapting one library to another.js
Source Code/Chapter11/11.03 - Adapting an email API.html
Source Code/Chapter11/11.04 - More on adapting an email API.js
Source Code/Chapter12/
Source Code/Chapter12/12.01 - Structure of the decorator.js
Source Code/Chapter12/12.02 - In what ways can a decorator modify its component.js
Source Code/Chapter12/12.03 - The role of the factory.js
Source Code/Chapter12/12.04 - Function decorators.js
Source Code/Chapter12/12.05 - Method profiler.js
Source Code/Chapter13/
Source Code/Chapter13/13.01 - Car registration example.js
Source Code/Chapter13/13.02 - Web calendar example.js
Source Code/Chapter13/13.03 - Tooltip example.js
Source Code/Chapter13/13.04 - Storing instances for later reuse.js
Source Code/Chapter14/
Source Code/Chapter14/14.01 - PublicLibrary class from Chapter 3.js
Source Code/Chapter14/14.02 - PublicLibraryProxy class.js
Source Code/Chapter14/14.03 - PublicLibraryVirtualProxy class.js
Source Code/Chapter14/14.04 - Page statistics example.js
Source Code/Chapter14/14.05 - General pattern for wrapping a web service.js
Source Code/Chapter14/14.06 - Directory lookup example.js
Source Code/Chapter14/14.07 - General pattern for creating a virtual proxy.js
Source Code/Chapter15/
Source Code/Chapter15/15.01 - Sellsian approach.js
Source Code/Chapter15/15.02 - Newspapers and subscribers.js
Source Code/Chapter15/15.03 - Building an observer API.js
Source Code/Chapter15/15.04 - Animation example.js
Source Code/Chapter15/15.05 - Event listeners are also observers.js
Source Code/Chapter16/
Source Code/Chapter16/16.01 - StopAd and StartAd classes.js
Source Code/Chapter16/16.02 - Commands using closures.js
Source Code/Chapter16/16.03 - Using interfaces with the command pattern.js
Source Code/Chapter16/16.04 - Types of commands.js
Source Code/Chapter16/16.05 - Menu commands.js
Source Code/Chapter16/16.06 - Undo with reversible commands.js
Source Code/Chapter16/16.07 - Undo with command logging.js
Source Code/Chapter17/
Source Code/Chapter17/17.01 - PublicLibrary class.js
Source Code/Chapter17/17.02 - PublicLibrary class with hard-coded catalogs.js
Source Code/Chapter17/17.03 - PublicLibrary class with chain of responsibility catalogs.js
Source Code/Chapter17/17.04 - GenreCatalog and SciFiCatalog classes.js
Source Code/Chapter17/17.05 - The findBooks method.js
Source Code/Chapter17/17.06 - DynamicGallery class from Chapter 9.js
Source Code/Chapter17/17.07 - DynamicGallery class with optimization.js
Source Code/Chapter17/17.08 - DynamicGallery class with tags.js
Source Code/Introduction/
Source Code/Introduction/Interface.js
Source Code/Introduction/Library.js
Source Code/README.txt