技术栈

readablestream

SunFlower914
1 年前
axios·xmlhttprequest·stream·fetch·responsetype·readablestream·流式接口
axios设置 responseType为 “stream“流式获取后端数据工作过程中遇到了后端接口响应过慢,前端界面一致loading的情况,这个时候可以尝试采用将Axios的responseType参数被设置为'stream'类型实现。