UN2758
V2EX  ›  问与答

Python 如何优雅的实现在前端展示上传进度?

  •  
  •   UN2758 · Dec 18, 2024 · 1215 views
    This topic created in 544 days ago, the information mentioned may be changed or developed.

    现在是前端定时轮询任务状态接口,还有啥更优雅的方式实现显示任务进度的方法吗?

    3 replies    2024-12-18 12:02:26 +08:00
    ccpp132
        1
    ccpp132  
       Dec 18, 2024
    不一定更优雅,但你可以考虑 websocket
    hahasong
        2
    hahasong  
       Dec 18, 2024
    根据分片 range 计算下返回
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3158 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:59 · PVG 21:59 · LAX 06:59 · JFK 09:59
    ♥ Do have faith in what you're doing.