前臺下載文件.通過文件路徑,

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);
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章