当前位置:网站首页>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
边栏推荐
- 2022中青杯C题城市交通思路分析
- Machine learning notes - bird species classification using machine learning
- 手机号国际区号JSON格式另附PHP获取
- Class constant pool and runtime constant pool
- web服务性能监控方案
- OSCP工具之一: dirsearch用法大全
- 什么是 CGI,什么是 IIS,什么是VPS「建议收藏」
- Learn how to use js to merge two objects into one object assign()
- 【刷题记录】2. 两数相加
- Analysis on urban transportation ideas of 2022 Zhongqing cup C
猜你喜欢

Collection of idea gradle Lombok errors
10 ways of interface data security assurance

史上最全学习率调整策略lr_scheduler

Summer 2022 daily question 1 (1)

【刷题记录】2. 两数相加

2022年电工杯B 题 5G 网络环境下应急物资配送问题思路分析
Implementation steps of docker deploying mysql8

【写给初发论文的人】撰写综述性科技论文常见问题

Implementation of map and set
![[record of question brushing] 2 Add two numbers](/img/3b/f8fec79dc2b5088ac57f8d7a18aea6.png)
[record of question brushing] 2 Add two numbers
随机推荐
Preprocessing - interpolation
Kotlin Android environment construction
termux设置电脑连接手机。(敲打命令贼快),手机termux端口8022
运算放大器应用汇总1
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
[MySQL] row sorting in MySQL
What is Ba? How about Ba? What is the relationship between Ba and Bi?
Opencv third party Library
2022电工杯A题高比例风电电力系统储能运行及配置分析思路
PHP 实现根据概率抽奖
Class constant pool and runtime constant pool
Redis configuration and optimization of NoSQL
2022年电工杯B 题 5G 网络环境下应急物资配送问题思路分析
tflite模型转换和量化
Quick completion guide of manipulator (10): accessible workspace
C task expansion method
[development software] tilipa Developer Software
如何编写一个程序猿另一个面试官眼前一亮的简历[通俗易懂]
Kalman filter-1
web服务性能监控方案