
您需要为以下同步请求设置async:false:
function doop(){ var that = this; var theold = $(this).siblings('.theold').html(); var thenew = $(this).siblings('.thenew').val(); $.ajax({ async: false, url: 'doop.php', type: 'POST', data: 'before=' + theold + '&after=' + thenew, success: function(resp) { if(resp == 1) { $(that).siblings('.theold').html(thenew); } } }); // some other pre return false;}详情请看这里
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)