<a id="export" href="javaScript:void(0);">导出csv</a>
$("#export").click(function(){
exportExcel($this);
});
function exportExcel(0){
o.attr("href",$("#basePath").val()+"report/Report!channelTypeStatisticExport.action?pid="+pid+"&cid="+cid+"&aid="+aid+"&startDate="+$("#createTimeBegin").val()+"&endDate="+$("#createTimeEnd").val());
}
==================
<input type="button" id="export" value="导出csv"/>
$("#export").click(function(){
exportExcel();
});
function exportExcel(0){
document.location.href=$("#basePath").val()+"report/Report!channelTypeStatisticExport.action?pid="+pid+"&cid="+cid+"&aid="+aid+"&startDate="+$("#createTimeBegin").val()+"&endDate="+$("#createTimeEnd").val();
}
$("#export").click(function(){
exportExcel($this);
});
function exportExcel(0){
o.attr("href",$("#basePath").val()+"report/Report!channelTypeStatisticExport.action?pid="+pid+"&cid="+cid+"&aid="+aid+"&startDate="+$("#createTimeBegin").val()+"&endDate="+$("#createTimeEnd").val());
}
==================
<input type="button" id="export" value="导出csv"/>
$("#export").click(function(){
exportExcel();
});
function exportExcel(0){
document.location.href=$("#basePath").val()+"report/Report!channelTypeStatisticExport.action?pid="+pid+"&cid="+cid+"&aid="+aid+"&startDate="+$("#createTimeBegin").val()+"&endDate="+$("#createTimeEnd").val();
}