
本机答案是否定的!
但是你可以这样做。
您的ajax请求:
$.ajax({ url: 'your-url-that-gives-zip-file.php', dataType: 'JSON', success: function(response){ if(response.zip) { location.href = response.zip; } }});您的php文件:
<?php//Get your zip file pre with and combine with http://youradress.com$zipFile = 'http://youraddress.com/downloads/'.$zipFile;echo json_enpre(array('zip' => $zipFile));?>欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)