JS创建多个下载任务

//JS创建多个下载任务
function Down() {
    //文件名
    var namearr = [];
    //文件路径
    var hrefarr = [];
    $(".downs .col-md-4").each(function (index, item) {
        namearr.push(需要下载的文件名);
        hrefarr.push(需要下载的文件路径);
    })
    for (var index = 0; index < hrefarr.length; index++) {
        download(namearr[index], hrefarr[index]);
    }
}

 

posted @ 2019-07-24 17:29  时光博客  阅读(688)  评论(0编辑  收藏  举报