js window.location.href下载服务端文件
js:
function load() {
var url="http://127.0.0.1:8080/xiao/loadController.do?downloadSoft&soft=xx.exe";
url=encodeURI(url);
window.location.href=url;
}
java:
@RequestMapping(params="downloadSoft")
public void downloadSoft(HttpServletRe
原创
2020-09-24 13:51:22 ·
1890 阅读 ·
0 评论