标签<a>如何做到与<input type="submit"/>一样有提交页面信息的效果?
@using (Html.BeginForm("Login", "User", FormMethod.Post, new { @id = "formId" })){}
<a href="javascript:login()">登录</a>
<script type="text/javascript"> function login() { $("#formId").submit(); }</script>
时间: 2024-10-11 13:28:27