我正在开发一个SPA,在会话超时时我会将用户重定向到登录页面。这是我实现 .run(['$rootScope', '$state', '$location', function ($rootScope, $state, $location) {
$rootScope.$watch(function detectIdle() {
var now = new Date();
我有以下以下相似形式... @using (Html.BeginForm())
{
@* Model elements go here *@
<input type="submit" value="Save" />
}
和由此看来下面的方法,我们将只需要调用“测试” public ActionResult Test()
{
return View();
}