fetch-progress:获取API的响应进度

上传者: 42143221 | 上传时间: 2022-12-02 19:10:59 | 文件大小: 128KB | 文件类型: ZIP
获取API的响应进度。 获取您的响应的进度报告,该响应从获取中获取,例如百分比,速度,总计,已传输,eta和剩余。 安装 npm i fetch-progress 用法 将fetchProgress方法导入您的项目 import fetchProgress from 'fetch-progress 现在在提取调用中使用fetchProgress方法,尝试在使用响应之前将其放入。 你可以 fetch(this.props.src) .then( fetchProgress({ // implement onProgress method onProgress(progress) { console.log({ progress }); // A possible progress report y

文件下载

资源详情

[{"title":"( 22 个子文件 128KB ) fetch-progress:获取API的响应进度","children":[{"title":"fetch-progress-master","children":[{"title":".babelrc <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 603B </span>","children":null,"spread":false},{"title":"speedometer.js <span style='color:#111;'> 964B </span>","children":null,"spread":false},{"title":"Progress.js <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"FUNDING.yml <span style='color:#111;'> 722B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 271.49KB </span>","children":null,"spread":false},{"title":"dist","children":[{"title":"fetch-progress.db655106.map <span style='color:#111;'> 7.84KB </span>","children":null,"spread":false},{"title":"fetch-progress.db655106.js <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"app.b185db3b.map <span style='color:#111;'> 74.20KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 348B </span>","children":null,"spread":false},{"title":"app.12eb2afb.js <span style='color:#111;'> 16.60KB </span>","children":null,"spread":false},{"title":"app.12eb2afb.map <span style='color:#111;'> 69.94KB </span>","children":null,"spread":false},{"title":"app.b185db3b.js <span style='color:#111;'> 53.38KB </span>","children":null,"spread":false}],"spread":true},{"title":".npmignore <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"index.d.ts <span style='color:#111;'> 756B </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"index.html <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"ProgressItem.js <span style='color:#111;'> 846B </span>","children":null,"spread":false},{"title":"app.js <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 30B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明