午夜国产狂喷潮在线观看|国产AⅤ精品一区二区久久|中文字幕AV中文字幕|国产看片高清在线

    ext前臺(tái)接收action傳過(guò)來(lái)的json數(shù)據(jù)示例
    來(lái)源:易賢網(wǎng) 閱讀:1654 次 日期:2014-06-18 20:58:45
    溫馨提示:易賢網(wǎng)小編為您整理了“ext前臺(tái)接收action傳過(guò)來(lái)的json數(shù)據(jù)示例”,方便廣大網(wǎng)友查閱!

    這篇文章以示例的方式為大家介紹了ext前臺(tái)接收action傳過(guò)來(lái)的json數(shù)據(jù),需要的朋友可以參考下。

    ext前臺(tái)接收action傳過(guò)來(lái)的json數(shù)據(jù)

    1

    代碼如下:

    Ext.Ajax.request({

    method:'POST',//請(qǐng)求方式

    params:{dagl_code:dagl_code},

    url:lcwPath+"/daxt/lcgl.shtml?method=getJgBycode",//請(qǐng)求的url地址

    success:function(response,opts){

    if(response.responseText!='{}'){

    alert(response.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.responseText).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('jgs').comboHidden.getValue();

    lcStore.proxy=newExt.data.HttpProxy({url:lcwPath+'/daxt/lcgl.shtml?method=getDaxx&dagl_type=L&dagl_jg='+dagl_jg});

    lcStore.load();

    Ext.getCmp('lcbh').setValue('');

    }else{//值沒(méi)有,清空信息

    Ext.MessageBox.show({

    title:'提示',

    msg:config.string.NOTNUMBERMSG_OR_NUMBERLOSEEFFICACY,

    minWidth:270,

    icon:Ext.MessageBox.WARNING,

    buttons:{"ok":"關(guān)閉"},

    fn:function(e){Ext.MessageBox.hide();},

    closable:true

    });

    Ext.getCmp("jgs").setValue("");

    Ext.getCmp("lcbh").setValue("");

    }

    },

    failure:function(response,opts){

    Ext.MessageBox.show({

    title:'系統(tǒng)提示',

    msg:'系統(tǒng)出現(xiàn)非預(yù)期異常',

    minWidth:270,

    icon:Ext.MessageBox.WARNING,

    buttons:{"ok":"關(guān)閉"},

    fn:function(e){Ext.MessageBox.hide();},

    closable:true

    });

    }

    });

    更多信息請(qǐng)查看IT技術(shù)專(zhuān)欄

    更多信息請(qǐng)查看網(wǎng)絡(luò)編程
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢(xún)回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門(mén)公布的正式信息和咨詢(xún)?yōu)闇?zhǔn)!

    2025國(guó)考·省考課程試聽(tīng)報(bào)名

    • 報(bào)班類(lèi)型
    • 姓名
    • 手機(jī)號(hào)
    • 驗(yàn)證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡(jiǎn)要咨詢(xún) | 簡(jiǎn)要咨詢(xún)須知 | 新媒體/短視頻平臺(tái) | 手機(jī)站點(diǎn) | 投訴建議
    工業(yè)和信息化部備案號(hào):滇ICP備2023014141號(hào)-1 云南省教育廳備案號(hào):云教ICP備0901021 滇公網(wǎng)安備53010202001879號(hào) 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號(hào)
    云南網(wǎng)警備案專(zhuān)用圖標(biāo)
    聯(lián)系電話(huà):0871-65099533/13759567129 獲取招聘考試信息及咨詢(xún)關(guān)注公眾號(hào):hfpxwx
    咨詢(xún)QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)
    云南網(wǎng)警報(bào)警專(zhuān)用圖標(biāo)