随笔分类 -  Ajax&JavaScript

ajax,javascript,vbscript,jQuery,ExtJS
摘要:/** * State Pattern 状态是一种行为设计模式, 让你能在一个对象的内部状态变化时改变其行为。 * The Context defines the interface of interest to clients. It also maintains a * reference to 阅读全文
posted @ 2023-10-11 18:11 ®Geovin Du Dream Park™ 阅读(4) 评论(0) 推荐(0) 编辑
摘要:/** * Memento Pattern 备忘录是一种行为设计模式, 允许生成对象状态的快照并在以后将其还原。 * The Originator holds some important state that may change over time. It also * defines a me 阅读全文
posted @ 2023-10-11 18:02 ®Geovin Du Dream Park™ 阅读(8) 评论(0) 推荐(0) 编辑
摘要:/** * Iterator Pattern 迭代器是一种行为设计模式, 让你能在不暴露复杂数据结构内部细节的情况下遍历其中所有的元素 * file: Iteratorts.ts npm install -g babel-cli * Intent: Lets you traverse element 阅读全文
posted @ 2023-10-11 18:01 ®Geovin Du Dream Park™ 阅读(6) 评论(0) 推荐(0) 编辑
摘要:/** * Chain of Responsibility Pattern 责任链是一种行为设计模式, 允许你将请求沿着处理者链进行发送, 直至其中一个处理者对其进行处理。 * file: Chaints.ts * The Handler interface declares a method fo 阅读全文
posted @ 2023-10-11 08:52 ®Geovin Du Dream Park™ 阅读(13) 评论(0) 推荐(0) 编辑
摘要:/** * Proxy Pattern 代理是一种结构型设计模式, 让你能提供真实服务对象的替代品给客户端使用。 代理接收客户端的请求并进行一些处理 (访问控制和缓存等), 然后再将请求传递给服务对象。 * The Subject interface declares common operatio 阅读全文
posted @ 2023-10-10 16:45 ®Geovin Du Dream Park™ 阅读(17) 评论(0) 推荐(0) 编辑
摘要:/** * Flyweight Pattern 享元是一种结构型设计模式, 它允许你在消耗少量内存的情况下支持大量对象。 * https://refactoringguru.cn/design-patterns/flyweight/typescript/example#lang-features * 阅读全文
posted @ 2023-10-10 13:20 ®Geovin Du Dream Park™ 阅读(10) 评论(0) 推荐(0) 编辑
摘要:/** * 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™ 阅读(7) 评论(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™ 阅读(8) 评论(0) 推荐(0) 编辑
摘要:/** * Composite Pattern 组合是一种结构型设计模式, 你可以使用它将对象组合成树状结构, 并且能像使用独立对象一样使用它们。 * https://refactoringguru.cn/design-patterns/composite/typescript/example#la 阅读全文
posted @ 2023-10-08 06:20 ®Geovin Du Dream Park™ 阅读(10) 评论(0) 推荐(0) 编辑
摘要:/** * Bridge Pattern 桥接是一种结构型设计模式, 可将业务逻辑或一个大类拆分为不同的层次结构, 从而能独立地进行开发。 * https://dev.to/takaakit/uml-diagram-for-gof-design-pattern-examples-in-typescr 阅读全文
posted @ 2023-10-07 10:55 ®Geovin Du Dream Park™ 阅读(8) 评论(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™ 阅读(14) 评论(0) 推荐(0) 编辑
摘要:npm init -ynpm install -g typescripttsc --version npm install -g ts-nodenpm install eslint --save-dev npm install typescript typescript-eslint-parser 阅读全文
posted @ 2023-10-06 14:58 ®Geovin Du Dream Park™ 阅读(14) 评论(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™ 阅读(12) 评论(0) 推荐(0) 编辑
摘要:/** * TypeScript 实体类 Model * Builder Pattern * 生成器是一种创建型设计模式, 使你能够分步骤创建复杂对象。 * https://stackoverflow.com/questions/12827266/get-and-set-in-typescript 阅读全文
posted @ 2023-10-05 20:14 ®Geovin Du Dream Park™ 阅读(8) 评论(0) 推荐(0) 编辑
摘要:/** * TypeScript 实体类 Model * https://stackoverflow.com/questions/12827266/get-and-set-in-typescript * https://github.com/Microsoft/TypeScript/wiki/Cod 阅读全文
posted @ 2023-10-05 07:41 ®Geovin Du Dream Park™ 阅读(19) 评论(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™ 阅读(8) 评论(0) 推荐(0) 编辑
摘要:JavaScript设计模式 Frontent Architecture for Design Systemsby Micah Godbolt Learning Javascirpt Design Patternsby Addy Osmanihttps://www.oreilly.com/libra 阅读全文
posted @ 2023-10-02 11:16 ®Geovin Du Dream Park™ 阅读(12) 评论(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™ 阅读(5) 评论(0) 推荐(0) 编辑
摘要:// JavaScript Document // file:1.js // edit: geovindu, Geovin Du /*var GeovinDu = { firstName: "Geovin", lastName: "Du" }; var student1 = { id: "12345 阅读全文
posted @ 2023-09-29 20:32 ®Geovin Du Dream Park™ 阅读(9) 评论(0) 推荐(0) 编辑
摘要:终端输入命令 get-command npm 后 至C:\Windows\System32 刪除npm 阅读全文
posted @ 2023-09-26 22:57 ®Geovin Du Dream Park™ 阅读(4) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示