pro-javascript-design-patterns

时间:2024-05-26 16:48:36
【文件属性】:

文件名称:pro-javascript-design-patterns

文件大小:61KB

文件格式:ZIP

更新时间:2024-05-26 16:48:36

JavaScript

“ Pro JavaScript设计模式”书中的代码示例。


【文件预览】:
pro-javascript-design-patterns-master
----chapter-9-the-composite-pattern()
--------page-136-image-gallery.js(3KB)
--------page-127-form-validation.js(7KB)
----chapter-1-expressive-javascript()
--------page-3-flexibility-of-javascript-4.js(600B)
--------page-3-flexibility-of-javascript-3.js(571B)
--------page-6-functions-as-first-class-objects.js(897B)
--------page-8-mutability-of-objects.js(971B)
--------page-3-flexibility-of-javascript-1.js(507B)
--------page-3-flexibility-of-javascript-5.js(754B)
--------page-3-flexibility-of-javascript-2.js(509B)
----chapter-5-the-singleton-pattern()
--------page-66-namespacing-1.js(358B)
--------page-78-branching-1.js(2KB)
--------page-70-a-singleton-with-private-members-3.js(1014B)
--------page-70-a-singleton-with-private-members-1.js(775B)
--------page-68-a-singleton-as-a-wrapper-for-page-specific-code-1.js(464B)
--------page-75-lazy-instantiation.js(446B)
--------page-65-the-basic-structure-of-singleton.js(750B)
--------page-66-namespacing-3.js(491B)
--------page-70-a-singleton-with-private-members-2.js(1KB)
--------page-66-namespacing-2.js(501B)
--------page-78-branching-2.js(2KB)
--------page-68-a-singleton-as-a-wrapper-for-page-specific-code-2.js(2KB)
----chapter-3-encapsulation-and-information-hiding()
--------page-27-fully-exposed-object-3.js(3KB)
--------page-33-private-members-through-closures.js(2KB)
--------page-35-static-methods-and-attributes.js(3KB)
--------page-37-constants-1.js(446B)
--------page-30-private-methods-using-a-naming-convension.js(3KB)
--------page-27-fully-exposed-object-1.js(556B)
--------page-32-scope-nested-functions-and-closures-2.js(472B)
--------page-37-constants-2.js(492B)
--------page-37-constants-my-version.js(501B)
--------page-27-fully-exposed-object-2.js(2KB)
--------page-32-scope-nested-functions-and-closures-1.js(231B)
----chapter-10-the-facade-pattern()
--------page-141-some-facade-functions-you-probably-already-know-about.js(340B)
--------page-146-creating-an-event-utility.js(942B)
--------page-144-setting-styles-on-HTML-elements.js(1KB)
--------page-143-facades-as-convenience-methods.js(857B)
----chapter-6-chaining()
--------page-86-building-a-chainable-javascript-library-2.js(823B)
--------page-86-building-a-chainable-javascript-library-1.js(1KB)
--------page-84-the-structure-of-a-chain.js(2KB)
--------page-89-using-callbacks-to-retrieve-data-from-chained-methods.js(1KB)
----chapter-2-interfaces()
--------page-16-emulating-interfaces-with-attribute-checking.js(2KB)
--------page-17-emulating-interfaces-with-duck-typing.js(1KB)
--------page-20-when-to-use-interface-class.js(571B)
--------page-21-example-using-the-interface-class-2.js(2KB)
--------page-21-example-using-the-interface-class-1.js(2KB)
--------Interface.js(1KB)
--------page-14-describing-interfaces-with-comments.js(1KB)
----.gitignore(9B)
----chapter-7-the-factory-pattern()
--------page-98-the-factory-pattern.js(2KB)
--------page-93-the-simple-factory.js(3KB)
--------page-101-specialized-connection-objects.js(2KB)
--------page-99-xhr-factory.js(2KB)
--------page-103-choosing-connection-objects-at-run-time.js(1KB)
--------page-104-rss-reader.js(3KB)
----README.md(86B)
----chapter-8-the-bridge-pattern()
--------page-109-event-listeners.js(764B)
--------page-111-building-an-xhr-connection-queue.js(8KB)
--------page-111-bridging-multiple-classes-together.js(336B)
--------page-110-other-examples-of-bridges.js(512B)
----chapter-4-inheritance()
--------page-42-classical-inheritance.js(303B)
--------page-50-mixin-classes-1.js(898B)
--------page-52-edit-in-place-1-using-classical-inheritance.js(5KB)
--------page-50-mixin-classes-2.js(1KB)
--------page-46-asymmetrical-reading-and-writing-of-inherited-members-2.js(723B)
--------page-52-edit-in-place-2-using-prototypal-inheritance.js(5KB)
--------page-52-edit-in-place-3-using-mixin-classes.js(5KB)
--------page-43-the-extend-function-2.js(2KB)
--------page-43-the-extend-function-1.js(1KB)
--------page-46-asymmetrical-reading-and-writing-of-inherited-members-3.js(741B)
--------page-42-the-prototype-chain.js(961B)
--------page-46-asymmetrical-reading-and-writing-of-inherited-members-1.js(1KB)
--------page-45-the-prototypal-inheritance.js(1KB)

网友评论