alphat
V2EX  ›  Vue.js

VUE2 异步更新视图,为什么要在 watcher.update 时创建队列

  •  
  •   alphat · Feb 5, 2021 · 2006 views
    This topic created in 1939 days ago, the information mentioned may be changed or developed.
    VUE2 异步更新视图,为什么要在 watcher.update 创建队列,而不是在 defineproperty set 里的 dep.notify() 时,直接创建队列?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2929 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 08:14 · PVG 16:14 · LAX 01:14 · JFK 04:14
    ♥ Do have faith in what you're doing.