在一个form里边同时执行搜索和 execl导出功能

一个form 分搜索 和 导出
<form name="searchform" id="searchform" > <input type="submit" id="search" class="button" value="搜索" onclick="$('#searchform').attr({action:'?m=模板&c=文件&a=方法',method:'get'});return true;"/> <input type="button" class="button" onclick="location.href='?m=mail&c=discuss&a=shipping'" value="清空搜索" /> <input type="submit" class="button" value="导出EXCEL" onclick="if(confirm('确定要导出订单吗?')){$('#searchform').attr({action:'?m=模板&c=文件&a=方法
',method:'post'});return true;}"/> 

</form>

  

posted @ 2016-10-19 17:38  hjr_rong  阅读(311)  评论(0编辑  收藏  举报