Fe-interview: [js] 第174天 你知道断点续传的原理吗?用js怎么实现?

Created on 6 Oct 2019  ·  2Comments  ·  Source: haizlin/fe-interview

第174天 你知道断点续传的原理吗?用js怎么实现?

js

Most helpful comment

主要依赖http协议的206返回码。前提条件是通信双方使用http1.1以上协议。
客户端使用请求头Range告知自己需要的数据范围;服务器使用响应头Content-Range说明返回的数据范围和数据长度。

可以参考HTTP请求范围

All 2 comments

主要依赖http协议的206返回码。前提条件是通信双方使用http1.1以上协议。
客户端使用请求头Range告知自己需要的数据范围;服务器使用响应头Content-Range说明返回的数据范围和数据长度。

可以参考HTTP请求范围

html5 file API截取文件、ajax分段上传

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haizhilin2013 picture haizhilin2013  ·  3Comments

undefinedYu picture undefinedYu  ·  3Comments

haizhilin2013 picture haizhilin2013  ·  3Comments

haizhilin2013 picture haizhilin2013  ·  3Comments

haizhilin2013 picture haizhilin2013  ·  3Comments