<a>作Form表单提</a>
1、
Form表单
<%using (Html.BeginForm("AddRoles", "RoleManage", FormMethod.Post, new { id="Form1",name="Form1"}))
{%>
<A/>用作表单提交,调用js提交表单
<a href="#" class="result-btn" onclick="on_Click();">提交</a>
<script type="text/javascript">
function on_Click(){
document.getElementById('Form1').submit()
}
</script>
2、就不用js调用了
<a href="#" class="result-btn" onclick="document.getElementById('Form1').submit()">导出结果</a>