$.post(/*...*/,function (result) { var blob=new Blob([result]); var link=document.createElement('a'); link.href=window.URL.createObjectURL(blob); link.download="myFileName.txt"; link.click(); }); 来源:https://www.cnblogs.com/eret9616/p/12630378.html 标签 blob