下载功能的实现

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";
}

推荐阅读更多精彩内容