JaeJiang / design-patterns-tutorial

主流JS设计模式简单分解

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

design-patterns-tutorial

Usage 使用

	git clone git@github.com:slashhuang/design-patterns-tutorial.git --depth=1

	cd design-patterns-tutorial

	## open html file to check results

Demo 查看演示

简易日志系统演示simple decorator log system

decorator设计模式

简单的对象回调数组演示 simple observer array

observer设计模式

结合事件进行的订阅发布模式 pub-sub handler combined with DOM events

pub-sub设计模式

内存管理之单例模式 memory saving strategy with singleton

singleton设计模式

Author contact

github

zhihu

About

主流JS设计模式简单分解


Languages

Language:HTML 100.0%