extjs文件下载的问题
想问下:在前台
Ext.Ajax.request({
url: '/A/B/C',
method: "POST",
async: false,
params: {ID: IDs,Key:Key},
success: function(response, opts) {
var responseArray = Ext.JSON.decode(response.responseText);
if (responseArray.IsSucess == true) {
window.location.href ="../DownLoad/" +responseArray.Message
}
else {
Ext.MessageBox.alert(MESSAGEBOX_NORMAL_TITLE, responseArray.Message);
}
}
});
想问下,下载txt的时候,为什么不是是弹出一个下载框,而是直接显示在页面上?想让他弹出,怎么弄