8 个常用的 JS 响应式模式(易理解版)
- PubSub or Publish-Subscribe(发布订阅)
- Custom Events(Browser)(自定义事件 基于浏览器 CustomEvent)
- Custom Event Targets(自定义事件基于 浏览器 EventTarget)
- Observer(观察者模式 基于 subject 和 observer)
- Reactive Properties With Proxy(proxy 代理方式)
- Individual Object Properties and Reactivity(Object.defineProperty)
- Reactive HTML Attributes With MutationObserver(MutationObserver)
- Reactive Scrolling With IntersectionObserver(IntersectionObserver 响应式滚动)