摘要:/** * Facade pattern 外观是一种结构型设计模式, 能为复杂系统、 程序库或框架提供一个简单 (但有限) 的接口。 * The Facade class provides a simple interface to the complex logic of one or * sev
阅读全文
posted @ 2023-10-08 11:56
®Geovin Du Dream Park™
阅读(18)评论(0)推荐(0)
摘要:/** * Decorator Pattern 装饰是一种结构设计模式, 允许你通过将对象放入特殊封装对象中来为原对象增加新的行为。 * The base Component interface defines operations that can be altered by * decorato
阅读全文
posted @ 2023-10-08 06:43
®Geovin Du Dream Park™
阅读(17)评论(0)推荐(0)
摘要:/** * Adapter pattern 适配器是一种结构型设计模式, 它能使不兼容的对象能够相互合作。 * file: Adapterts.ts * * */ /** * The Target defines the domain-specific interface used by the c
阅读全文
posted @ 2023-10-06 20:03
®Geovin Du Dream Park™
阅读(22)评论(0)推荐(0)
摘要:/** *file: prototypets.ts * Prototype Pattern 原型是一种创建型设计模式, 使你能够复制对象, 甚至是复杂对象, 而又无需使代码依赖它们所属的类。 * The example class that has cloning ability. We'll se
阅读全文
posted @ 2023-10-05 21:20
®Geovin Du Dream Park™
阅读(28)评论(0)推荐(0)
摘要:/** * file: factory.ts * 抽象工厂 * The Abstract Factory interface declares a set of methods that return * different abstract products. These products are
阅读全文
posted @ 2023-10-04 16:55
®Geovin Du Dream Park™
阅读(15)评论(0)推荐(0)
摘要:// Sorting Algorithms int JavaScript /** * file Sort.js * 1. Bubble Sort冒泡排序法 */ function BubbleSort(arry, nszie) { var i, j, temp; var swapped; for (
阅读全文
posted @ 2023-10-01 21:31
®Geovin Du Dream Park™
阅读(13)评论(0)推荐(0)
摘要:Best Tour Plugins To Guide Visitors Through Your Apphttps://yonkov.github.io/post/display-shepherd-only-once/https://www.jqueryscript.net/blog/best-gu
阅读全文
posted @ 2023-09-22 10:37
®Geovin Du Dream Park™
阅读(25)评论(0)推荐(0)