当前位置:   article > 正文

ExtJs Ajax的请求

extjs ajax请求
//这段请求
  1. Ext.lib.Ajax.request(
  2. 'POST', //这里估计要改改
  3. contextPath+'/xg/xszz/zxdkbAction.do?method=addSqs&sqs='+sqs,
  4. {
  5. success:function(response){
  6. var rs = Ext.decode(response.responseText);
  7. if(rs.success){
  8. location.href=contextPath+rs.message;
  9. }else{
  10. location.href=contextPath+rs.message;
  11. }
  12. },failure:function(){
  13. Ext.Msg.alert("提示","服务器连接失败!");
  14. }
  15. }
  16. );
  Ext.Ajax.request({         method: 'POST',         url: contextPath+'/xg/xszz/zxdkbAction.do?method=addSqs',         params:{          sqs:sqs         },success: function(response){          var rs = Ext.decode(response.responseText);          location.href=contextPath+rs;         }, failure: function(response){          var rs = Ext.decode(response.responseText);          location.href=contextPath+rs;         }  });  location.href=contextPath+"/xg/xszz/zxdk/zxdk_pksdjb.html";    
 
 

转载于:https://www.cnblogs.com/seein/archive/2012/04/11/2461214.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/322178
推荐阅读
相关标签
  

闽ICP备14008679号