EmitRemmus
V2EX  ›  Vue.js

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

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

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

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

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