开发者

jquery ajax get download file

$.get(
url: downloadUrl,
function(data) {

//after get the data, how to ask browser pop up to save file?
}
); 

data is content dumped by serve开发者_JAVA百科r side servlet. can be binary


Don't use Ajax for this, just location = downloadUrl;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜