下载功能的实现

download(id) {
  var download_file = {}
  var iframe = document.createElement("iframe");
  download_file.iframe = iframe;
  document.body.appendChild(download_file.iframe);
  download_file.iframe.src = `download url`
  download_file.iframe.style.display = "none";
}

你可能感兴趣的:(下载功能的实现)