step1:配置路径 var path = "../../" + data.data.dir + "/" + data.data.file + ""; step2:实现界面显示下载信息 window.location.href = path;