可能$。员额,并得到一个文件下载对话框回 [英] possible to $.post and get a file download dialog back
本文介绍了可能$。员额,并得到一个文件下载对话框回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用jQuery的$。员额,并想知道如果我可以用它来获得一个FileResult回来?没有任何成功了吗?内容是回来了回调,但不是作为一个文件下载?
I'm using jquery's $.post and was wondering if I can use this to get a FileResult back? Not having any success yet? The content is coming back in the callback but not as a file download?
谢谢,
rodchar
Thanks, rodchar
推荐答案
这是不可能的。
相反,你可以提交一个普通的<形式>
使用Javascript与响应内容处置:附件
Instead, you can submit a regular <form>
using Javascript that responds with Content-Disposition: attachment
.
这篇关于可能$。员额,并得到一个文件下载对话框回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文