EmitRemmus
V2EX  ›  Vue.js

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

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

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

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

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