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

Angular2 如何显示出后台接口最新的数据 因为后台的数据经常变化,现在每次手动刷新页面后,才会请求后台接口请求最新的数据

  •  
  •   labulaka · Mar 15, 2018 · 4804 views
    This topic created in 2976 days ago, the information mentioned may be changed or developed.
    2 replies    2018-05-09 17:06:40 +08:00
    airyland
        1
    airyland  
       Mar 15, 2018
    1.ajax 定时刷新
    2.websocket 推送
    3.SSE
    pengfei
        2
    pengfei  
       May 9, 2018
    试一下长轮询, 稳定一些
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3943 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 04:29 · PVG 12:29 · LAX 21:29 · JFK 00:29
    ♥ Do have faith in what you're doing.