alphat
V2EX  ›  Vue.js

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

  •  
  •   alphat · Feb 5, 2021 · 1990 views
    This topic created in 1933 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   ·   874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 20:07 · PVG 04:07 · LAX 13:07 · JFK 16:07
    ♥ Do have faith in what you're doing.