php导出下载Excel文件被IE阻止,如何解决?用流输出也不行
Jun 13, 2016 pm 01:33 PM
php导出下载Excel文件被IE阻止,怎么解决?用流输出也不行!
下载Excel文件被IE阻止,怎么解决?
当点击导出按钮时,通过AJAX在后台生成一个excel文件,想直接在页面上弹出文件是否保存的对话框,
无论是通过js的window.location.href='';还是 通过form 提交到新页面都不行,后台通过流方式输出,都被IE阻止;
请问谁有办法解决?
- PHP code
1 |
|
------解决方案--------------------
那我就白捡分了 哈哈
------解决方案--------------------

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Hongmeng native application random poetry

Use java's File.length() function to get the size of the file

How does SpringBoot pass parameters in the Header through Feign calls?

Rename files using java's File.renameTo() function

Use java's File.getParentFile() function to get the parent directory of the file

Use java's File.getParent() function to get the parent path of the file
