1
我有以下几点:
$.ajax(options)
.then(function (response) {
// success
}, function (response, a, b) {
// fail
})
.always(function (output, status, xhr) {
// xhr is always null here
});
此前,xhr
是可用的。我如何使用最新版本的jQuery访问它?
你使用的是什么版本的jQuery? –
@DeyvisonSouto 3.2.0 – SB2055
你用任何东西了“于是”设置?我认为使用.then时回调的签名与使用旧学校$ .ajax调用相比是不同的。 – Culme