0
我有一個關於JQuery .post()函數用於進行ajax調用的問題。現在的問題是在下面的代碼:JQuery .post()ajax參數說明
$.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() {
});
請參閱http://stackoverflow.com/a/14754681/1049184和http://stackoverflow.com/questions/8847829 – PeterKA