标签:
页面使用代码:
<script type="text/javascript">
var app = angular.module("ControlState", []); app.controller("Home/Login", function ($scope,$window) { $scope.login = function(user) { var url="@Url.Action("Login","Home")"; $.post(url,user,function(ret){ if(ret=="False"){ art.dialog.tips(‘用户名或密码错误,请重新输入!‘, 1.5); $(‘form‘)[0].reset(); $(‘form input‘)[0].focus(); }else{ if(user.UserName=="admin") location="Index"; else location="Contact"; } }); }; });
前端代码
View Code
4.权限角色验证
http://files.cnblogs.com/humble/%E9%A1%B9%E7%9B%AE%E5%8F%8A%E6%95%B0%E6%8D%AE%E5%BA%93.7z
http://www.cnblogs.com/humble/p/3149734.html
Bootstrap+angularjs+MVC3+分页技术+角色权限验证系统
标签:
原文地址:http://www.cnblogs.com/chen110xi/p/4299894.html