1.能夠在登陸頁面加jQuery驗證spa
$(function () { //判斷一下當前是否是作頂層,若是不是,則作一下頂層頁面重定向 if (window != top) { top.location.href = location.href; } });
2.OnActionExecuting方法中修改filterContext.Resultcode
filterContext.Result = new ContentResult() { Content = "<script>top.window.location.href='/user/Login'</script>" };