【发布时间】:2014-07-04 05:45:11
【问题描述】:
我对用于进行 ajax 调用的 JQuery .post() 函数有疑问。问题在下面的代码中:
$.post( "processOrder", $( "#OrderForm" ).serialize(), function() {
// What is the diff between putting code here....
})
.done(function(data) {
// ... and putting it in the "done" instead ?....
})
.fail(function() {
})
.always(function() {
});
【问题讨论】: