在返回的response里面设置HTTP头的Content-Disposition=attachement;filename=xxxx,即可实现文件另存为"xxxx";Content-Disposition=attachement则按照原文件名另存为的下载模式,可以满足开发者的不同需求;
转载于:https://www.cnblogs.com/yinliang/p/5882530.html
转载于:https://www.cnblogs.com/yinliang/p/5882530.html