当前位置:网站首页>easyui出口excel无法下载框弹出的办法来解决
easyui出口excel无法下载框弹出的办法来解决
2022-07-06 21:26:00 【全栈程序员站长】
大家好,又见面了,我是全栈君
使用前ajax发,码如下面(ActionUrl一般处理程序ashx路径):
$.ajax({
url: ActionUrl + '?action=export&ID=' + $('#fm_ID').val(),
dataType: 'json',
success: function (jsonstr) {
//top.art.dialog.tips('导出成功。');
}
});
没办法弹出下载框。
直接浏览器地址栏输入相关页面地址并打开能够弹出下载框下载,考虑可能是iframe的缘故。
由于输入页面地址能够打开下载框,所以考虑打开新的页面下载,可是由于导出用的NPOI的缘故,要传递DataTable,所以就不这么做了。
想用window.showModalDialog的方法:
window.showModalDialog(ActionUrl + '?action=export&ID=' + $('#fm_ID').val());
可是仅仅弹出一个空白窗口,并不会下载。
所以最后用window.open实现:
window.open(ActionUrl + '?action=export&ID=' + $('#fm_ID').val());
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/116701.html原文链接:https://javaforall.cn
边栏推荐
- AVL树插入操作与验证操作的简单实现
- idea gradle lombok 报错集锦
- Allow public connections to local Ruby on Rails Development Server
- .net中 接口可以有默认实现了
- 使用 Dumpling 备份 TiDB 集群数据到 GCS
- Hisilicon 3559 universal platform construction: RTSP real-time playback support
- 卡尔曼滤波-1
- Confirm the future development route! Digital economy, digital transformation, data This meeting is very important
- 机械臂速成小指南(十):可达工作空间
- Vernacular high concurrency (2)
猜你喜欢
Huawei and Xiaomi "copy each other"
QT 使用QToolTip 鼠标放上去显示文字时会把按钮的图片也显示了、修改提示文字样式
[leetcode] 700 and 701 (search and insert of binary search tree)
On file uploading of network security
Simple implementation of AVL tree insertion and verification operations
R data analysis: how to predict Cox model and reproduce high score articles
Ggplot facet detail adjustment summary
How to customize the shortcut key for latex to stop running
How to detect whether the MySQL code runs deadlock +binlog view
【安全攻防】序列化与反序列,你了解多少?
随机推荐
本机mysql
[leetcode] 450 and 98 (deletion and verification of binary search tree)
QT 项目 表格新建列名称设置 需求练习(找数组消失的数字、最大值)
Allow public connections to local Ruby on Rails Development Server
cuda编程
SSL certificate deployment
学习使用js把两个对象合并成一个对象的方法Object.assign()
海思万能平台搭建:颜色空间转换YUV2RGB
我的勇敢对线之路--详细阐述,浏览器输入URL发生了什么
Kotlin Android environment construction
R data analysis: how to predict Cox model and reproduce high score articles
ggplot 分面的细节调整汇总
Some thoughts on cross end development of kbone and applet
Docker部署Mysql8的实现步骤
Redis configuration and optimization of NoSQL
[leetcode] 700 and 701 (search and insert of binary search tree)
[development software] tilipa Developer Software
ABAP 動態內錶分組循環
QT thread and other 01 concepts
浅谈网络安全之文件上传