coolair
V2EX  ›  问与答

Vue 有什么扩展可以做到深层数据变更也能响应式吗?

  •  
  •   coolair · Nov 17, 2020 · 1287 views
    This topic created in 2177 days ago, the information mentioned may be changed or developed.
    我发现经常有 Object In Array 的数据结构,修改了 Array 中的某个 Object 属性,页面不能实时更新,有没有相关的扩展可以应用后做到深度监控的?
    2 replies  •  2020-11-17 10:29:27 +08:00
    gromit1337
    gromit1337
    Nov 17, 2020
    1
    Vue.set()
    aogu555
    aogu555
    Nov 17, 2020
    2
    用 this.$set()这种方式来修改
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3296 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 05:08 · PVG 13:08 · LAX 21:08 · JFK 00:08
    ♥ Do have faith in what you're doing.