jqXHR 对象(post完成后再调用函数)

时间:2023-02-12 10:09:17

场景:

function A() {
B();
C();
}
function B() {
$.post(url, {}, function () {
alert("我错了!");
},"json")
}
function C() {
alert("打我啊!");
}

执行结果:

1. aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAB/CAIAAABJ1h8oAAAXiklEQVR4nO2d+3cT17XH9b+k5P6WNrUvBDCvQFweucGyZD1ty3YDCbQkGENSGsBPSaO3bNLbxu0tGJzHit2uGi4BbINlcHKTtglY0jz0MIltjY2xvCylEpKK1pr7w5kZjWTJwYMfrdf+rL3EmX322eerg+fLWCZEwgAAAIhCstYCAAD4d6WgfVRXV6sBAAAEyGSyH7CP6urqc6bO312fMv15ytBL63tpfQ9t6A3pe2lDL23oofW9IUNPSN8bMvSwUwZU00Pre7lZbkrfQwsuaT1azrXV94T0PYLlPbShl9urJ6TnlqPOaHdDb0jfw4pBHQy9qDJk6OEVcluDftC/XvSXvWFyXpl2Xp1yXplyXp12Xp12Xpl2XplyXp1ik1e45FVUNp0puzqVNUarrgimrggXCqbQFlemyw6bDL1040cTVW8Z9+zZU9A+3jP81nFl+p2u8dfPP6g7P1bHvmZFbccDQf5BXceDuo6xuvMPas+P1Z4fq+sYq+sYq2MHD+o6HtShfE50CPp3ZDaqzVOM+o/VslvzzbmNcnsu6A/6Qf+/uf4tqjbn1em10r9F1db8yeTr748d+s2Y/I22/PYhlUqdV+hTF8drO4J1HWO1WREUvLJRJ3hdGHVZg6BgbTBffXDBwmDdgsyiHbK6gX7Qv570b1G2Oa9OrZX+Lcq2po8nazvG6s6P1Th96AEk1z727dt37sOJuo6xmnYUQTZQpiNY28Ema9mpMW48VtPBZ8Zq2sdq24NcjAnra9mpMW7tGJ+vaQ8KmrDLazrYtYIlwZr2sVo+zy7h8gINoB/0rxv9W5RtzivTS9L//BYVCl7/f3CZperfomxr/HiS11/QPk5fGq9xBnXOYE17sMYZrHFGp5jUXScaB/g8O2Br0GVAh8raM686Z0DXHtRl+gRq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TjdAaKUNTRZ225X2yNmwCgMU5OcipOnp/8u/XyFdRdfSeHOSWNQOwCQCAArAJAIACsAkAgAKwCQCAArAJAIACsAkAgAKwCQCAArAJAIACsAkAgAKwCQCAAuk2sen1vsKqE1v3frHx1c9RUFBQNr76+cbd/1dYdWLT632CTWzZc3Xj7vOFVSceL21DQUFBeby0rbDqxMbd57fsubpt/3Wapqlt+65v2XN10+t9G3efR0FBQdm4+/ym1/u27Lm6bd/17dq3eJ6ntmvfevrAVygoKChpZbv2LZqmeZ6neJ6nAQAgA17k/wFxR0eAtqTRBgAAAABJRU5ErkJggg==" alt="" />

问题:

和想实现的相反了,应该是“我错了!打我啊”

解决:

 var whoFirst;
function A() {
B();
whoFirst.complete(function () {
C();
});
}
function B() {
whoFirst= $.post(url, { }, function (data) {
alert("我错了!");
},"json")
}
function C() {
alert("打我啊!");
}

ok,解决了

这问题已经不懂很久了,不求甚解的悲剧后果。

推荐了W3C

http://www.w3school.com.cn/jquery/ajax_post.asp