前臺代碼:
復制代碼 代碼如下:
Ext.get('outputuser').on('click', function(e){
Ext.MessageBox.confirm('提示','確定要導出用戶嗎?',function(btn){
if(btn=="yes"){
Ext.Ajax.request({
url:"可以獲得要下載文件的url",
success:function(res){
var obj =Ext.decode(res.responseText);
//alert(res.responseText);
window.location.href =obj.path;
}
});
}
})
});
復制代碼 代碼如下:
$json = '{"path":"/web/ii.rar"}';
echo $json;
新聞熱點
疑難解答
圖片精選