<script type="text/javascript">
$("#commit").click(function(){
var name =$("#name").val();
var password = $("#password").val();
debugger;
if(name =='admin'&&password =='ehouse'){
$.get("<%=basePath%>admin/login.html");
}else{
alert("用户名或密码不正确");
}
});
</script>
@Controller
@RequestMapping(value = "/admin/")
public class AdminController {
@RequestMapping(value = "/login")
public ModelAndView index(HttpServletRequest request)throws SQLException {
ModelAndView view = new ModelAndView("index");
return view;
}
}
守着一只汪
郎朗坤
素胚勾勒不出你
慕少森
相关分类