您的位置:首页 > 其它

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

2017-11-09 00:00 369 查看
<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();


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐