sendHttpPost("mMatchGameConfig/statisInfo", data, function(response){ if(!response.success){ PlatformHelper.showToast("请求失败,请重试"); self.refresh.setEnabled(true); self.refresh.setVisible(true); return; } var recv = null; recv = JSON.parse(response.responseText); if(recv != null){ if(recv.status == 200) { var data = recv["resultMap"]; if(data == null){ return; } self.loadRightData(data); self.hasMore = data["staticInfo"]["hasMore"]; self.refresh.setVisible(false); }else{ PlatformHelper.showToast("请求失败,请重试"); self.refresh.setEnabled(true); self.refresh.setVisible(true); } } });
cocos2d-js中sendHttpPost数据请求样式
最新推荐文章于 2024-03-13 11:34:09 发布