window.location.href = "Download?file=" + data.fileName;//服務器上訪問文件的寫法
window.location.href = "Download/" + data.fileName;//vs2017上訪問文件的寫法
/*實例:
本地vs2017上:http://localhost:14583/Download/20190717100130.csv
服務器上:http:// xxxx /Download/?file=20190717100130.csv
*/