阅读背景:

在成功的AJAX调用之后修改传递给jQuery done()回调的参数

来源:互联网 

Here's the scenario:

这是场景:

I need to fetch some JSON data via AJAX from the server (ASP.NET MVC application + ServiceStack services). If the user's session expires then instead of getting back JSON I get a redirect to the login page, which gets automatically executed by jQuery, so the result of the AJAX call ends up being the raw HTML of the login form. I need to handle these two cases differently:I need to fetch




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: