나는 아래의 코드 페이지에 사이트에서 이미지의 긴 목록을 표시하고있어 표시에 대한 속성. 이드는 다운로드 이미지 HTML5
을 사용하여 각 이미지를 클릭하면 다운로드 할 수 있습니다.세트 다운로드 동적 이미지
는 여기에 내가 무엇을 시도했다입니다 :
for (var i = 0; i<arlnData.d.length;i++) {
var img = document.createElement('img');
img.src = "https://images.website.com/airvendors/airlines_"+arlnData.d[i].Code+".gif";
img.download ="my image";
//also tried:
//img.src = "https://images.website.com/airvendors/airlines_"+arlnData.d[i].Code+".gif";
document.body.appendChild(img);
var imageCellspace=document.createElement('br');
document.body.appendChild(imageCellspace);
}
이미지가 잘 표시되지만 나던 작업을 다운로드를 클릭합니다.
올바른 구문은 여기에 무엇입니까?
아, 완벽한 링크를 필요로했다. 고맙습니다! – DelightedD0D