第2个回答 2012-05-24
$.ajaxSetup({
async: false,//async:false 同步请求
cache: false,
contentType: 'application/x-www-form-urlencoded; charset=utf-8',
error: function(xhr, textStatus, errorThrown) {
//alert(this.type + ' url:' + this.url + '; error:' + textStatus + ';' + xhr.status);
return false;
}
});