创建a标签使用get请求下载文件

创建a标签使用get请求下载文件

 let url = `${BaseUrl.path}/aa/bb/cc?no=${this.sqcode}&pae=${this.wlName}&ase=${this.setDate(this.data[0])}&eae=${this.setDate(this.data[1])}&esy=${this.empId}&aay=${this.sqName}`;
      const a = document.createElement('a')
      a.style.display = 'none';
      a.setAttribute('target', '_blank');
      a.href = url;
      a.click();

posted @ 2020-02-13 01:28  糖~豆豆  阅读(2222)  评论(0编辑  收藏  举报
Live2D