ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [JavaScript] 한번에 다중 파일 다운로드
    JavaScript Meteor 2022. 2. 27. 13:56
    function multiFileDownload() {
                const query = 'input[name="odr-list"]:checked';
                const selectList = document.querySelectorAll(query);
    						// 개별 다운로드 버튼을 강제 클릭해줌
                document.getElementById(`odr_click${selectList[forCount].value}`).click();
                forCount++;
                if(forCount < selectList.length) {
                        setTimeout(function () {
    												// 자기 자신을 호출한다. 체크된 사이즈만큼
                            multiFileDownload()
                        }, 1000)
                } else {
                    forCount = 0;
                }
            }
    
Designed by Tistory.