从 jQuery 的 1.5/1.51 版本开始,我们可以像这样发出 ajax 请求
var jqxhr = $.ajax({ url: "example.php" })
.success(function() { alert("success"); })
.error(function() { alert("error"); })
.complete(function() { alert("complete"); });
// Set another completion function for the request above
jqxhr.complete(function(){ alert("second complete"); });
1> 我仍在寻找一些示例/演示/一些信息,以了解这种执行 jQuery.ajax 的方式有什么重要目的,而以前的方式没有服务
2> 这个 jqXHR 对象有多大用处。
3> 我正在寻找一些实用的东西