myajax = $.ajax({
type:'POST',
url:"${ctx }/rwp/sq2",
contentType : 'application/json',
data: list,
async:true, // 异步请求
cache:false,
success: function (data) {
}
});
***$.when(myajax).done(function () { #!!!!这里是答案***
//要执行的操作
self.location.href="${ctx }/srwp/show?A=aaa&B="+gro;
});