当前位置: 代码迷 >> Web前端 >> 一种导出不刷本页面出现皂页的方式
  详细解决方案

一种导出不刷本页面出现皂页的方式

热度:58   发布时间:2012-10-24 14:15:58.0
一种导出不刷本页面出现白页的方式
  function queryProjectBill()
  {
    document.ProjectBillForm.operation.value="selectProjectBill";
    document.ProjectBillForm.target="";
    document.ProjectBillForm.submit();
  }

//查询的时候提交的target换成空

在body里面设置隐藏的iframe
<iframe name="excelFrame" id="excelFrame" style="display:none;"> </iframe>

//导出方法里面设置
  function exportExcel()
    {
       document.ProjectBillForm.operation.value="exportExcel";
       document.ProjectBillForm.target="excelFrame";
       document.ProjectBillForm.submit();
    }


//跳转到另外一个页面
没数据时
<script language="javascript">
	  alert('<iecc:message key="epm.reconsign.query.web.ProductLitigationStatAction.Message0"/>');
	</script>
  相关解决方案