首页 > 其他 > 详细

页面嵌入隐藏iframe实现导出功能

时间:2016-11-06 22:33:08      阅读:499      评论:0      收藏:0      [点我收藏+]
 <div style="display: none">
	<form action="" name="exportExcel" id="exportExcel" target="export
		method="post" accept-charset="utf-8"></form>
	<iframe name="export" id="export"></iframe>
 </div>

  

var f = document.getElementById(‘exportExcel‘);
var actionUrl = ‘envElecPriceAction!downLoadDetailFrist.action?envElecPrice.beginTime=‘ + beginTime
	+ ‘&envElecPrice.endTime=‘ + endTime
	+ ‘&envElecPrice.zoneId=‘  + zoneId
	+ ‘&envElecPrice.pollSourceId=‘ + pollSourceId
	+ ‘&envElecPrice.pollSourceName=‘ + Ext.getCmp(‘sourceNameId33‘).getValue()
	+ ‘&envElecPrice.labelId=‘ + Ext.getCmp(‘groupLabelComboBoxId3‘).getValue()
	+ ‘&envElecPrice.polluteName=‘+ polluteData;
f.action = actionUrl;
f.submit();

  

页面嵌入隐藏iframe实现导出功能

原文:http://www.cnblogs.com/blog-cq/p/6036450.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!