日期:2014-05-16 浏览次数:20568 次
Ext.Ajax.request({
url:'getPath.action',
success:function(res){
var obj = Ext.decode(res.responseText);
//console.log(obj);//可以到火狐的firebug下面看看obj里面的结构
//加入getPath返回的json为{'path':'upload/abc.jpg'}
window.location.href = obj.path;//这样就可以弹出下载对话框了
}
});