POI依赖的jar包
org.apache.poi
poi-ooxml
3.14
前台(使用easyUI框架)
//导出
$("#button-export").click(function(){
window.location.href="../../area_batchExport.action";
});
//导入
(“#button-import”).upload({
action: ‘../../area_batchImport.action’,
onSelect:function(){
this.autoSubmit = false;
var filename = this.filename();
// 只能导入指定格式的文件
var regex = /^.*.(xls|xlsx)