实现文件下载
getFile(fileUrl) {//在本页打开窗口let that = this;var x = new XMLHttpRequest();x.open("GET", fileUrl, true);x.responseType = "blob";x.onprogress = function(event) {//在这里监听文件下载的进度};x.onload = function(e) {var url = window.URL.createObjectURL(x.response);var a = document.createElement("a");a.href = url;a.download = fileUrl.substring(fileUrl.lastIndexOf('/')+1);a.click();};x.send();},
