我使用Ajax和我用它beforeSend选项。但我想知道如何使用.post的$() beforeSend选项...使用在$。员额()beforeSend选项如何
我的Ajax代码:
$.ajax({
type: 'POST',
url: url,
data: data,
beforeSend: function() {
//some condition
},
success: function(){},
error: function() {}
});
在$。员额():
$.post(url, data, function())
但是,当添加beforeSend选项
[使用beforeSend并使用$ .post?完成](http://stackoverflow.com/questions/2257975/using-beforesend-and-complete-with-post) – cyfur01