2
我是一個在Ext JS中的newby,我需要做一個讓瀏覽器返回一個文件的安寧的調用。我應該怎麼做?如何使用Ext JS庫下載文件?
這是我到目前爲止,電話是返回,但我無法將文件下載到瀏覽器。
Ext.onReady(function() {
form = Ext.Ajax.request({
url: 'http://localhost:8080/getfile',
success: function(x){
return x;
},
failure: function() { console.log('failure');},
params: {'someparams': Ext.encode ({'abc': {'hello': '123'}})
}
});
});