FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
重构代码 · double1000/javascript@3935b53 · GitHub
double1000
javascript
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Commit
3935b53
Browse files
Browse the repository at this point in the history
Browse files
wchaowu
committed
重构代码
1 parent
ee76180
commit
3935b53
Copy full SHA for 3935b53
102 files changed
+4
Lines changed: 4 additions & 0 deletions
File tree
Expand file tree
Collapse file tree
Open diff view settings
Filter options
JavaScript-Design-Patterns
Chaining
Building a chainable JavaScript library.js
Introduction to chaining.js
The structure of the chain.js
Using callbacks.js
Encapsulation-and-Information-Hiding
1-Book example class.js
2-Fully exposed object.js
3 - Private methods with underscores.js
4 - Scope, nested functions, and closures.js
5 - Private methods with closures.js
6 - Static members.js
7 - Constants.js
The-Adapter-Pattern
1 - Characteristics of an adapter.js
2 - Adapting one library to another.js
3 - Adapting an email API.html
4 - More on adapting an email API.js
The-Bridge-Pattern
1 - Event listener example.js
2 - Other examples of bridges.js
3 - Bridging multiple classes together.js
4 - Building an XHR connection queue.js
5 - XHR connection queue example page.html
6 - Where have bridges been used_.js
The-Chain-of-Responsibility-Pattern
1 - PublicLibrary class.js
2 - PublicLibrary class with hard-coded catalogs.js
3 - PublicLibrary class with chain of responsibility catalogs.js
4 - GenreCatalog and SciFiCatalog classes.js
5 - The findBooks method.js
6 - DynamicGallery class from Chapter 9.js
7 - DynamicGallery class with optimization.js
8 - DynamicGallery class with tags.js
The-Command-Pattern
1 - StopAd and StartAd classes.js
2 - Commands using closures.js
3 - Using interfaces with the command pattern.js
4 - Types of commands.js
5 - Menu commands.js
6 - Undo with reversible commands.js
7 - Undo with command logging.js
The-Composite-Pattern
1 - Form validation.js
2 - Adding operations to FormItem.js
3 - Adding classes to the hierarchy.js
4 - Image gallery example.js
The-Decorator-Pattern
1 - Structure of the decorator.js
2 - In what ways can a decorator modify its component.js
3 - The role of the factory.js
4 - Function decorators.js
5 - Method profiler.js
The-Facade-Pattern
1 - Some facades you probably already know about.js
2 - Facades as convenience methods.js
3 - Setting styles on HTML elements.js
4 - Creating an event utility.js
The-Factory-Pattern
1 - The simple factory.js
2 - The factory pattern.js
3 - XHR factory example.js
4 - Specialized connection objects.js
5 - Choosing connection objects at run-time.js
6 - RSS reader example.js
The-Flyweight-Pattern
1 - Car registration example.js
2 - Web calendar example.js
3 - Tooltip example.js
4 - Storing instances for later reuse.js
The-Observer-Pattern
1 - Sellsian approach.js
2 - Newspapers and subscribers.js
3 - Building an observer API.js
4 - Animation example.js
5 - Event listeners are also observers.js
The-Proxy-Pattern
1 - PublicLibrary class from Chapter 3.js
2 - PublicLibraryProxy class.js
3 - PublicLibraryVirtualProxy class.js
4 - Page statistics example.js
5 - General pattern for wrapping a web service.js
6 - Directory lookup example.js
7 - General pattern for creating a virtual proxy.js
The-Singleton-Pattern
1 - Basic structure of the singleton.js
2 - Namespacing.js
3 - Wrappers for page specific code.js
4 - Private methods with underscores.js
5 - Private methods with closures.js
6 - Comparing the two techniques.js
7 - Lazy instantiation.js
8 - Branching.js
9 - Creating XHR objects with branching.js
README.md
object-oriented
Expressive-JavaScript
1 - The flexibility of JavaScript.js
2 - Functions as first-class objects.js
3 - The mutability of objects.js
Inheritance
1 - Classical inheritance.js
10 - Edit-in-place example, prototypal.js
11 - Edit-in-place example, mixin.js
2 - The prototype chain.js
3 - The extend function.js
4 - Prototypal inheritance.js
5 - Asymmetrical reading and writing.js
6 - The clone function.js
7 - Mixin classes.js
8 - The augment function.js
9 - Edit-in-place example, classical.js
Interfaces
1 - Describing interfaces with comments.js
2 - Emulating interfaces with attribute checking.js
3 - Emulating interfaces with duck typing.js
4 - The interface implementation for this book.js
5 - The Interface class.js
6 - When to use the Interface class.js
7 - An example illustrating the use of the Interface class.js
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file tree
Collapse file tree
Open diff view settings
Collapse file
…ilding a chainable JavaScript library.js …ilding a chainable JavaScript library.js
JavaScript-Design-Patterns/Chaining/6.03 - Building a chainable JavaScript library.js renamed to JavaScript-Design-Patterns/Chaining/Building a chainable JavaScript library.js
JavaScript-Design-Patterns/Chaining/6.03 - Building a chainable JavaScript library.js renamed to JavaScript-Design-Patterns/Chaining/Building a chainable JavaScript library.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…ining/6.01 - Introduction to chaining.js …rns/Chaining/Introduction to chaining.js
JavaScript-Design-Patterns/Chaining/6.01 - Introduction to chaining.js renamed to JavaScript-Design-Patterns/Chaining/Introduction to chaining.js
JavaScript-Design-Patterns/Chaining/6.01 - Introduction to chaining.js renamed to JavaScript-Design-Patterns/Chaining/Introduction to chaining.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…ing/6.02 - The structure of the chain.js …s/Chaining/The structure of the chain.js
JavaScript-Design-Patterns/Chaining/6.02 - The structure of the chain.js renamed to JavaScript-Design-Patterns/Chaining/The structure of the chain.js
JavaScript-Design-Patterns/Chaining/6.02 - The structure of the chain.js renamed to JavaScript-Design-Patterns/Chaining/The structure of the chain.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…terns/Chaining/6.04 - Using callbacks.js …ign-Patterns/Chaining/Using callbacks.js
JavaScript-Design-Patterns/Chaining/6.04 - Using callbacks.js renamed to JavaScript-Design-Patterns/Chaining/Using callbacks.js
JavaScript-Design-Patterns/Chaining/6.04 - Using callbacks.js renamed to JavaScript-Design-Patterns/Chaining/Using callbacks.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…tion-Hiding/3.01 - Book example class.js …formation-Hiding/1-Book example class.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.01 - Book example class.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/1-Book example class.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.01 - Book example class.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/1-Book example class.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…on-Hiding/3.02 - Fully exposed object.js …rmation-Hiding/2-Fully exposed object.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.02 - Fully exposed object.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/2-Fully exposed object.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.02 - Fully exposed object.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/2-Fully exposed object.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…03 - Private methods with underscores.js …/3 - Private methods with underscores.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.03 - Private methods with underscores.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3 - Private methods with underscores.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.03 - Private methods with underscores.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3 - Private methods with underscores.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…Scope, nested functions, and closures.js …Scope, nested functions, and closures.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.04 - Scope, nested functions, and closures.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/4 - Scope, nested functions, and closures.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.04 - Scope, nested functions, and closures.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/4 - Scope, nested functions, and closures.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…/3.05 - Private methods with closures.js …ing/5 - Private methods with closures.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.05 - Private methods with closures.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/5 - Private methods with closures.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.05 - Private methods with closures.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/5 - Private methods with closures.js
Copy file name to clipboard
File renamed without changes.
Collapse file
…ormation-Hiding/3.06 - Static members.js …Information-Hiding/6 - Static members.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.06 - Static members.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/6 - Static members.js
JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/3.06 - Static members.js renamed to JavaScript-Design-Patterns/Encapsulation-and-Information-Hiding/6 - Static members.js
Copy file name to clipboard
File renamed without changes.
0 commit comments
Comments
0
(0)
Back
|
FazBrowse Home
|
New Git URL
0 commit comments