JS创建多个下载任务

时间:2019-07-24 18:14:04   收藏:0   阅读:85
//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]);
    }
}

 

原文:https://www.cnblogs.com/zpblogs/p/11239555.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!