alphat
V2EX  ›  Vue.js

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

  •  
  •   alphat · Feb 5, 2021 · 1979 views
    This topic created in 1925 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   ·   3008 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:18 · PVG 15:18 · LAX 00:18 · JFK 03:18
    ♥ Do have faith in what you're doing.