当前位置:网站首页>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
边栏推荐
- easyui出口excel无法下载框弹出的办法来解决
- Create commonly used shortcut icons at the top of the ad interface (menu bar)
- cuda编程
- Machine learning notes - bird species classification using machine learning
- Using thread class and runnable interface to realize the difference between multithreading
- Simple implementation of AVL tree insertion and verification operations
- Restore backup data on GCS with tidb lightning
- 机器人(自动化)课程的持续学习-2022-
- OSCP工具之一: dirsearch用法大全
- leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
猜你喜欢
随机推荐
一些常用软件相关
Collection of idea gradle Lombok errors
Use dumping to back up tidb cluster data to GCS
Restore backup data on GCS with br
What is Ba? How about Ba? What is the relationship between Ba and Bi?
. Net interface can be implemented by default
Antd Comment 递归循环评论
The most complete security certification of mongodb in history
Mysql-数据丢失,分析binlog日志文件
Kotlin Android environment construction
史上最全MongoDB之部署篇
史上最全学习率调整策略lr_scheduler
本机mysql
QT item table new column name setting requirement exercise (find the number and maximum value of the array disappear)
维护万星开源向量数据库是什么体验
ABAP Dynamic Inner table Group cycle
vim —- 自己主动的按钮indent该命令「建议收藏」
Hisilicon 3559 universal platform construction: RTSP real-time playback support
How to detect whether the MySQL code runs deadlock +binlog view
C task expansion method