超时问题有两种 前端设置了 timeout,不设置即可 服务端断开了链接,服务端把时间改长点 进度的问题,前端发请求是有两个进度的,都可以监听用于显示 上传进度 前端培训-中级阶段(21)- xhr2、FormData(2019-10-17期) demo - http://www.lilnong.top/static/html/bug-test-img-upload-cut.html 下载进度 前端培训-初级阶段-场景实战(2019-06-06)-下载文件&下载进度 axios 中的进度回调 // `onUploadProgress` 允许为上传处理进度事件 onUploadProgress: function (progressEvent) { // 对原生进度事件的处理 }, // `onDownloadProgress` 允许为下载处理进度事件 onDownloadProgress: function (progressEvent) { // 对原生进度事件的处理 },
超时问题有两种
进度的问题,前端发请求是有两个进度的,都可以监听用于显示
demo - http://www.lilnong.top/static/html/bug-test-img-upload-cut.html
axios 中的进度回调