当前位置:网站首页>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
边栏推荐
- How to manage the expiration of enterprise distribution certificates- How to manage Enterprise Distribution certificate expiration?
- Learn how to use js to merge two objects into one object assign()
- 力扣------路径总和 III
- [MySQL] row sorting in MySQL
- Use facet to record operation log
- One of oscp tools: dirsearch usage Encyclopedia
- QT opens a file and uses QFileDialog to obtain the file name, content, etc
- When QT uses qtooltip mouse to display text, the picture of the button will also be displayed and the prompt text style will be modified
- opencv第三方库
- QT item table new column name setting requirement exercise (find the number and maximum value of the array disappear)
猜你喜欢
随机推荐
Binary, octal, hexadecimal
使用切面实现记录操作日志
链表面试常见题
UltraEdit-32 温馨提示:右协会,取消 bak文件[通俗易懂]
OSCP工具之一: dirsearch用法大全
SQL injection -day15
1.19.11.SQL客户端、启动SQL客户端、执行SQL查询、环境配置文件、重启策略、自定义函数(User-defined Functions)、构造函数参数
AVL树插入操作与验证操作的简单实现
Enter the rough outline of the URL question (continuously updated)
List interview common questions
QT opens a file and uses QFileDialog to obtain the file name, content, etc
Native MySQL
. Net interface can be implemented by default
cuda编程
termux设置电脑连接手机。(敲打命令贼快),手机termux端口8022
Quick completion guide of manipulator (10): accessible workspace
Create commonly used shortcut icons at the top of the ad interface (menu bar)
MySQL storage engine
什么是 CGI,什么是 IIS,什么是VPS「建议收藏」
tflite模型转换和量化




![[MySQL] row sorting in MySQL](/img/97/8a451fa62796838e11242c86eecd8d.png)



