使用锚标记<a>?

时间:2019-03-21 03:34:49

标签: javascript reactjs vue.js ecmascript-6

there is no callBack, so i don't know, how to get download time

if there have some other way, like: get net speed and file size, use size / speed ? or other method.

thank you

1 个答案:

答案 0 :(得分:1)

您不能使用标签来执行此操作。如果要获取文件,请使用带有JavaScript的AJAX:

http://usefulangle.com/post/68/javascript-ajax-download-file

通过此操作,您可以获取进度,文件大小等。

相关问题