当前位置:网站首页>EasyUI export excel cannot download the method that the box pops up
EasyUI export excel cannot download the method that the box pops up
2022-07-07 04:06:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack
Before using ajax Hair , The code is as follows (ActionUrl General handler ashx route ):
$.ajax({
url: ActionUrl + '?action=export&ID=' + $('#fm_ID').val(),
dataType: 'json',
success: function (jsonstr) {
//top.art.dialog.tips(' Export succeeded .');
}
});There is no way to pop up the download box .
Directly enter the address of the relevant page in the browser address bar and open the download box to download , Consider maybe iframe Why .
Because entering the page address can open the download box , So consider opening a new page to download , But because of the export NPOI Why , To pass DataTable, So don't do this .
Want to use window.showModalDialog Methods :
window.showModalDialog(ActionUrl + '?action=export&ID=' + $('#fm_ID').val());But only a blank window pops up , Will not download .
So in the end window.open Realization :
window.open(ActionUrl + '?action=export&ID=' + $('#fm_ID').val());Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116701.html Link to the original text :https://javaforall.cn
边栏推荐
- [hcie TAC] question 3
- Termux set up the computer to connect to the mobile phone. (knock the command quickly), mobile phone termux port 8022
- map和set的实现
- Do you choose pandas or SQL for the top 1 of data analysis in your mind?
- What is the experience of maintaining Wanxing open source vector database
- Kotlin Android environment construction
- 使用 BR 备份 TiDB 集群到 GCS
- PHP 实现根据概率抽奖
- Opencv third party Library
- 2022 middle school Youth Cup mathematical modeling question B fertility policy research ideas under the background of open three children
猜你喜欢

2022中青杯C题城市交通思路分析

ABAP 動態內錶分組循環

5年自动化测试,终于进字节跳动了,年薪30w其实也并非触不可及

Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)

leetcode:面试题 17.24. 子矩阵最大累加和(待研究)

Kalman filter-1

Redis configuration and optimization of NoSQL

Antd Comment 递归循环评论

Do you choose pandas or SQL for the top 1 of data analysis in your mind?

Food Chem | in depth learning accurately predicts food categories and nutritional components based on ingredient statements
随机推荐
termux设置电脑连接手机。(敲打命令贼快),手机termux端口8022
What is the experience of maintaining Wanxing open source vector database
Operational amplifier application summary 1
[record of question brushing] 2 Add two numbers
The most complete security certification of mongodb in history
Redis source code learning (31), dictionary learning, dict.c (1)
1.19.11.SQL客户端、启动SQL客户端、执行SQL查询、环境配置文件、重启策略、自定义函数(User-defined Functions)、构造函数参数
QT opens a file and uses QFileDialog to obtain the file name, content, etc
Construction of Hisilicon universal platform: color space conversion YUV2RGB
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
2022 middle school Youth Cup mathematical modeling question B fertility policy research ideas under the background of open three children
Native MySQL
Hisilicon 3559 universal platform construction: RTSP real-time playback support
tflite模型转换和量化
Some thoughts on cross end development of kbone and applet
史上最全MongoDB之部署篇
Redis configuration and optimization of NoSQL
One of oscp tools: dirsearch usage Encyclopedia
Kotlin Android environment construction
ABAP dynamic inner table grouping cycle