ext前台接收action传过来的json数据示例_.docx

上传人:啊飒飒 文档编号:11614122 上传时间:2021-08-26 格式:DOCX 页数:4 大小:12.03KB
返回 下载 相关 举报
ext前台接收action传过来的json数据示例_.docx_第1页
第1页 / 共4页
ext前台接收action传过来的json数据示例_.docx_第2页
第2页 / 共4页
ext前台接收action传过来的json数据示例_.docx_第3页
第3页 / 共4页
ext前台接收action传过来的json数据示例_.docx_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《ext前台接收action传过来的json数据示例_.docx》由会员分享,可在线阅读,更多相关《ext前台接收action传过来的json数据示例_.docx(4页珍藏版)》请在三一文库上搜索。

1、ext前台接收action传过来的json数据示例_ 这篇文章以示例的方式为大家介绍了ext前台接收action传过来的json数据,需要的伴侣可以参考下。 ext前台接收action传过来的json数据 代码如下: Ext.Ajax.request( method:POST,/恳求方式 params:dagl_code:dagl_code, url:lcwPath+/daxt/lcgl.shtml?method=getJgBycode,/恳求的url地址 success:function(response,opts) if(response.responseText!=) alert(res

2、ponse.responseText); spanstyle=BACKGROUND-COLOR:#ffcc99/第一种方法 vardagl_jg=Ext.util.JSON.decode(response.responseText).dagl_jg; /其次种方法 varjson=eval(+re.responseText+); vardagl_jg=json.dagl_jg; /span varorg_mc=Ext.util.JSON.decode(response.responseText).org_mc; varlccode=Ext.util.JSON.decode(response.r

3、esponseText).lccode; varlcname=Ext.util.JSON.decode(response.responseText).lcname; Ext.getCmp(jgs).comboHidden.setValue(dagl_jg); Ext.getCmp(jgs).setValue(org_mc); Ext.getCmp(dagl_jg).setValue(dagl_jg); Ext.getCmp(sslc).setValue(lccode); Ext.getCmp(sslc).setRawValue(lcname); vardagl_jg=Ext.getCmp(jg

4、s).comboHidden.getValue(); lcStore.proxy=newExt.data.HttpProxy(url:lcwPath+/daxt/lcgl.shtml?method=getDaxxdagl_type=Ldagl_jg=+dagl_jg); lcStore.load(); Ext.getCmp(lcbh).setValue(); else/值没有,清空信息 Ext.MessageBox.show( title:提示, msg:config.string.NOTNUMBERMSG_OR_NUMBERLOSEEFFICACY, minWidth:270, icon:E

5、xt.MessageBox.WARNING, buttons:ok:关闭, fn:function(e)Ext.MessageBox.hide();, closable:true ); Ext.getCmp(jgs).setValue(); Ext.getCmp(lcbh).setValue(); , failure:function(response,opts) Ext.MessageBox.show( title:系统提示, msg:系统消失非预期特别, minWidth:270, icon:Ext.MessageBox.WARNING, buttons:ok:关闭, fn:function(e)Ext.MessageBox.hide();, closable:true ); ); 更多信息请查看IT技术专栏 .

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 科普知识


经营许可证编号:宁ICP备18001539号-1