EmitRemmus
V2EX  ›  Vue.js

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

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

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

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1108 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:09 · PVG 07:09 · LAX 16:09 · JFK 19:09
    ♥ Do have faith in what you're doing.