诸如导出excel,下载图片等,均不能直接用jquery的ajax系列封装方法,因为ajax1不支持返回二进制流
详情参考:
http://www.cnblogs.com/cdemo/p/5225848.html
中文名及后缀识别:
response.setHeader("Content-disposition","attachment;filename="+new String(filename.getBytes("gbk"),"iso8859-1")+".xls");
诸如导出excel,下载图片等,均不能直接用jquery的ajax系列封装方法,因为ajax1不支持返回二进制流
详情参考:
http://www.cnblogs.com/cdemo/p/5225848.html
中文名及后缀识别:
response.setHeader("Content-disposition","attachment;filename="+new String(filename.getBytes("gbk"),"iso8859-1")+".xls");