用JS文件批量下载文件

2022/03/17 JavaScript
const downFileArray = document.getElementsByClassName("class-name")
let index = 0
let timer = setInterval(()=>{
    if(index < downFileArray.length){
        let link = downFileArray[index]
        link.click()
        link +=1
    }else{
        clearInterval(timer)
    }

},2000)

Search

    逃离地球的Sandy

    logo of sandy

    Table of Contents