当前位置:网站首页>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
边栏推荐
- Kotlin Android environment construction
- 接口数据安全保证的10种方式
- web服务性能监控方案
- pyqt5 失焦 监听无操作 定时器
- Redis源码学习(31),字典学习,dict.c(一)
- 史上最全学习率调整策略lr_scheduler
- ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly
- 史上最全MongoDB之Mongo Shell使用
- 机械臂速成小指南(十):可达工作空间
- 学习使用js把两个对象合并成一个对象的方法Object.assign()
猜你喜欢
Top 50 hit industry in the first half of 2022
10 ways of interface data security assurance
Antd comment recursive loop comment
The most complete security certification of mongodb in history
Food Chem|深度学习根据成分声明准确预测食品类别和营养成分
用头像模仿天狗食月
Mongo shell, the most complete mongodb in history
SQL injection -day15
【knife-4j 快速搭建swagger】
Antd Comment 递归循环评论
随机推荐
MySQL storage engine
[dpdk] dpdk sample source code analysis III: dpdk-l3fwd_ 001
用头像模仿天狗食月
POJ培训计划2253_Frogger(最短/floyd)
ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly
【写给初发论文的人】撰写综述性科技论文常见问题
QT item table new column name setting requirement exercise (find the number and maximum value of the array disappear)
Antd Comment 递归循环评论
Enter the rough outline of the URL question (continuously updated)
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
Hongmi K40S root gameplay notes
Kotlin Android 环境搭建
C task expansion method
Allow public connections to local Ruby on Rails Development Server
web服务性能监控方案
map和set的实现
Force buckle ----- path sum III
Quick completion guide of manipulator (10): accessible workspace
UltraEdit-32 温馨提示:右协会,取消 bak文件[通俗易懂]
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件