function down(url,start1,start2){
var link = document.createElement('a');
url=url+"/"+start1+"/"+start2+"_screen.mp4";
link.setAttribute("href",url);
link.setAttribute("download", start2+"_screen.mp4");
console.log(url);
console.log(link.getAttribute("download"));
link.style.visibility = 'hidden';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
前台下载文件.通过文件路径,
最新推荐文章于 2024-05-23 17:04:04 发布