V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
EmitRemmus
V2EX  ›  Vue.js

对于执行数据操作之后模板更新,是倾向于重新请求接口还是直接手动更新本地数据

  •  
  •   EmitRemmus · Dec 2, 2016 · 2160 views
    This topic created in 3433 days ago, the information mentioned may be changed or developed.

    使用Vue如果对一个列表做了增删排序的操作,模板需要更新,现有两个选项: 1. 重新请求接口去更新数据,从而驱动模板更新。 2. 手动去改本地的数据,从而驱动模板更新。

    对于两种情况,各位有什么看法?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1001 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:18 · PVG 06:18 · LAX 15:18 · JFK 18:18
    ♥ Do have faith in what you're doing.