前台newExt.Button({text:'导出EXCEL',handler:function(){varappWindow=window.open("getExecl.do");//调action得到数据生成execl格式的数据,response发往前台appWindow.focus();}})后台:filename是导出的文件名,heads是excel表头,datalist是数据publicvoidcreateExcelStream(HttpServletResponseresponse,Stringfilename,String[]heads,