mvc的简单登录包含(form表单登录,ajax的异步登录)
三种登录方式
@{
Layout = null;
}
@model ADCC_biaopei.Models.StudentViewModel
<!DOCTYPE html>
<link href="~/ScrYang/layui-v2.5.5/layui-v2.5.5/layui/css/layui.css" rel="stylesheet" />
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title></title>
</head>
<body>
@*第一种登录*@
@*<form class="layui-form" action="/Student/login" method="post">
<table>
<tr>
<td>账户</td>
<td><input name="name" type="text" /></td>
</tr>
<tr>
<td>密码</td>
<td><input type="password" name="pwd" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="登录"