//前端脚本 function LoginOut() { if (window.confirm("是否退出?")) { window.location.href = "/Account/loginOut"; } }
后台程序
public ActionResult LoginOut() { FormsAuthentication.SignOut(); return RedirectToAction("Acount", "Login"); }
本文共 353 字,大约阅读时间需要 1 分钟。
//前端脚本 function LoginOut() { if (window.confirm("是否退出?")) { window.location.href = "/Account/loginOut"; } }
后台程序
public ActionResult LoginOut() { FormsAuthentication.SignOut(); return RedirectToAction("Acount", "Login"); }
转载于:https://www.cnblogs.com/sandyliu1999/p/4981436.html