zoukankan      html  css  js  c++  java
  • extjs同步与异步请求互换

     onChange: function(_Field, _newValue, _oldValue) {
            if (_newValue == _oldValue) return;
            if (!_Field) return;
            if (_Field.xtype && _Field.xtype == "datefield") _newValue = _newValue.toString(); // _newValue=_newValue.format('yyyy-M-dd') ;
            this.onGetChangeValues(_Field, _newValue, _oldValue);
            _unit = {
                formid: this.form_id,
                command: '',
                key: _Field.name,
                value: _newValue
            };
            var _funid = this.id.replace(/(^Primary)/g, "");
            var url = 'Actions/WebFormSet.aspx?&Controller=EditBusiness&funcid=' + _funid;
            /**改为同步调用**/
            url += "&formid=" + this.form_id;
    //        url += "&parent_formid=" + _parent_formId;
            url += "&command=";
            url += "&key=" + _Field.name;
            url += "&value=" + _newValue;
            var conn = Ext.lib.Ajax.getConnectionObject().conn;
            conn.open("GET", url, false);
            conn.send(null);
            var responseArray = conn.responseText;
            this.onChangeAjaxsuccess(conn, null);
           
           
    //        Ext.Ajax.request({
    //            url: url,
    //            params: _unit,
    //            scope: this,
    //            success: this.onChangeAjaxsuccess
    //        });
        },
  • 相关阅读:
    vue 子页面,向父页面 传值...
    pre 标签 防止 其撑开 div...
    Vue 父页面 值传递 不到 子组件....
    Mysql tips 功能...
    mysql 配置utf8 编码,支持 emoji 方法!!!
    DataGrip 使用--方法-..../
    百度地图 api bug 解决.......
    民生银行信用卡销卡指南
    古董留念
    Microsoft Office 2010 Service Pack 2 发布更新
  • 原文地址:https://www.cnblogs.com/winner/p/1374771.html
Copyright © 2011-2022 走看看