我对我的 ajax 有三个不同的请求:
$result = Map_Model_Map_Factory::getCityByRegionAlias($alias);
$resultCountUsers = User_Model_User_Factory::countUserByRegion($alias);
$resultCountPartners = User_Model_User_Factory::countPartnersByRegion($alias);
第一个请求效果很好。但是第二个和第三个相互冲突。如果$this->_helper->json($resultCountUsers);
先出现,那么它可以工作:
$this->_helper->json($resultCountUsers);
$this->_helper->json($resultCountPartners);
$this->_helper->json($result);
我得到了我需要的东西,countUsers: "1"
但我没有countPartners
。反之亦然,如果$this->_helper->json($resultCountPartners);
先来,那么我就countPartners
没有countUsers
.
也许有人知道,发生了什么以及我如何才能收到它。