alphat
V2EX  ›  Vue.js

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

  •  
  •   alphat · Feb 5, 2021 · 2014 views
    This topic created in 1947 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   ·   1297 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:24 · PVG 01:24 · LAX 10:24 · JFK 13:24
    ♥ Do have faith in what you're doing.