使用jquery中的ahref作为Zip下载多个图像

使用jquery中的ahref作为Zip下载多个图像,jquery,dicom,dcm4che,Jquery,Dicom,Dcm4che,Iam使用dcm4che处理dicom图像。 Iam将wado请求设置为ahref以下载图像,但Iam未获得该图像。 这是我与wado请求的html代码: <a class="myFile" href="http://xxxxx/wado?requestType=WADO&amp;studyUID=1.2.840.113704.1.111.6028.1515205296.94&amp;seriesUID=1.2.840.113704.1.111.3616.15152053

Iam使用dcm4che处理dicom图像。
Iam将wado请求设置为ahref以下载图像,但Iam未获得该图像。

这是我与wado请求的html代码:

 <a class="myFile" href="http://xxxxx/wado?requestType=WADO&amp;studyUID=1.2.840.113704.1.111.6028.1515205296.94&amp;seriesUID=1.2.840.113704.1.111.3616.1515205367.2&amp;objectUID=1.2.840.113704.1.111.8164.1515205401.69892" download="download.jpeg"></a>
 <a class="myFile" href="http://xxxxx/wado?requestType=WADO&amp;studyUID=1.2.840.113704.1.111.6028.1515205296.94&amp;seriesUID=1.2.840.113704.1.111.3616.1515205367.2&amp;objectUID=1.2.840.113704.7.1.1.8556.1515205401.2"></a>
 <a class="myFile" href="http://xxxxx/wado?requestType=WADO&amp;studyUID=1.2.840.113704.1.111.6028.1515205296.94&amp;seriesUID=1.2.840.113704.1.111.3616.1515205367.2&amp;objectUID=1.2.840.113704.7.1.1.912.1515205428.1"></a>  
我需要下载所有的ahref链接,如在zip

有人能解决我的问题吗?

试试这个:

var i;
for(i=0;i<$('.myFile').length;i++){
   var a=document.getElementByClassName('.myFile')[e];
   a.setAttribute('download','download.jpeg');
   a.click();
 }
vari;
对于(i=0;i
var i;
for(i=0;i<$('.myFile').length;i++){
   var a=document.getElementByClassName('.myFile')[e];
   a.setAttribute('download','download.jpeg');
   a.click();
 }